fn extract_last_parcel(&mut self,old_state:StateBeforeAddition) -> VotesWithSameTransferValue<'a> {
        let mut res = VotesWithSameTransferValue::default();
        for v in self.votes.drain(old_state.votes_len..) {
            res.add_vote(v);
        }
        self.num_atl_ballots-=res.num_atl_ballots;
        self.num_ballots-=res.num_ballots;
        res
    }
/// revert to the prior state with a token from [add], returning the votes removed. Used to get the last parcel.
revert to the prior state with a token from [add], returning the votes removed. Used to get the last parcel.
revert to the prior state with a token from [ add ] returning the votes removed . Used to get the last parcel .
fn extract_last_parcel(&mut self,old_state:StateBeforeAddition) -> VotesWithSameTransferValue<'a> {
        let mut res = VotesWithSameTransferValue::default();
        for v in self.votes.drain(old_state.votes_len..) {
            res.add_vote(v);
        }
        self.num_atl_ballots-=res.num_atl_ballots;
        self.num_ballots-=res.num_ballots;
        res
    }
fn extract_last_parcel ( & mut self , old_state : StateBeforeAddition ) -> VotesWithSameTransferValue < ' a > { let mut res = VotesWithSameTransferValue :: default ( ) ; for v in self . votes . drain ( old_state . votes_len .. ) { res . add_vote ( v ) ; } self . num_atl_ballots -= res . num_atl_ballots ; self . num_ballots -= res . num_ballots ; res }
revert to the prior state with a token from [add], returning the votes removed.
revert to the prior state with a token from [ add ] returning the votes removed .
&mut self
old_state
StateBeforeAddition
&mut self
old_state
StateBeforeAddition