Struct snapshot_lib::voting_group::RepsVotersAssigner
source · pub struct RepsVotersAssigner {
direct_voters: VotingGroup,
reps: VotingGroup,
dreps: HashSet<Identifier>,
}
Fields§
§direct_voters: VotingGroup
§reps: VotingGroup
§dreps: HashSet<Identifier>
Implementations§
source§impl RepsVotersAssigner
impl RepsVotersAssigner
pub fn new(direct_voters: VotingGroup, reps: VotingGroup, dreps: Dreps) -> Self
Trait Implementations§
source§impl VotingGroupAssigner for RepsVotersAssigner
impl VotingGroupAssigner for RepsVotersAssigner
fn assign(&self, vk: &Identifier) -> VotingGroup
Auto Trait Implementations§
impl RefUnwindSafe for RepsVotersAssigner
impl Send for RepsVotersAssigner
impl Sync for RepsVotersAssigner
impl Unpin for RepsVotersAssigner
impl UnwindSafe for RepsVotersAssigner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more