pub fn add(&mut self,votes:&Vec<PartiallyDistributedVote<'a>>) -> StateBeforeAddition {
        let old_state = StateBeforeAddition{votes_len:self.votes.len()};
        for v in votes {
            self.add_vote(*v);
        }
        old_state
    }
/// Add in some votes, and give a token that can be passed to [extract_last_parcel] to revert to the current state.
Add in some votes, and give a token that can be passed to [extract_last_parcel] to revert to the current state.
Add in some votes and give a token that can be passed to [ extract_last_parcel ] to revert to the current state .
pub fn add(&mut self,votes:&Vec<PartiallyDistributedVote<'a>>) -> StateBeforeAddition {
        let old_state = StateBeforeAddition{votes_len:self.votes.len()};
        for v in votes {
            self.add_vote(*v);
        }
        old_state
    }
pub fn add ( & mut self , votes : & Vec < PartiallyDistributedVote < ' a > > ) -> StateBeforeAddition { let old_state = StateBeforeAddition { votes_len : self . votes . len ( ) } ; for v in votes { self . add_vote ( * v ) ; } old_state }
Add in some votes, and give a token that can be passed to [extract_last_parcel] to revert to the current state.
Add in some votes and give a token that can be passed to [ extract_last_parcel ] to revert to the current state .
&mut self
votes
&Vec<PartiallyDistributedVote<'a>>
&mut self
votes
&Vec<PartiallyDistributedVote<'a>>