fn take_votes(&mut self,election_data:&'_ ElectionData,to_take:BallotPaperCount) -> Vec<TakeVotes> {
        let mut res = vec![];
        let take_btl = to_take.min(self.btl.ballots_remaining);
        let take_atl = to_take-take_btl;
        if !take_btl.is_zero() { self.btl.take_votes(election_data,take_btl,&mut res); }
        if !take_atl.is_zero() { self.atl.take_votes(election_data,take_atl,&mut res); }
        res
    }
/// Get a specific number of ballots, taking BTL ones first.
Get a specific number of ballots, taking BTL ones first.
Get a specific number of ballots taking BTL ones first .
fn take_votes(&mut self,election_data:&'_ ElectionData,to_take:BallotPaperCount) -> Vec<TakeVotes> {
        let mut res = vec![];
        let take_btl = to_take.min(self.btl.ballots_remaining);
        let take_atl = to_take-take_btl;
        if !take_btl.is_zero() { self.btl.take_votes(election_data,take_btl,&mut res); }
        if !take_atl.is_zero() { self.atl.take_votes(election_data,take_atl,&mut res); }
        res
    }
fn take_votes ( & mut self , election_data : & ' _ ElectionData , to_take : BallotPaperCount ) -> Vec < TakeVotes > { let mut res = vec ! [ ] ; let take_btl = to_take . min ( self . btl . ballots_remaining ) ; let take_atl = to_take - take_btl ; if ! take_btl . is_zero ( ) { self . btl . take_votes ( election_data , take_btl , & mut res ) ; } if ! take_atl . is_zero ( ) { self . atl . take_votes ( election_data , take_atl , & mut res ) ; } res }
Get a specific number of ballots, taking BTL ones first.
Get a specific number of ballots taking BTL ones first .
&mut self
election_data
&'_ ElectionData
to_take
BallotPaperCount
&mut self
election_data
&'_ ElectionData
to_take
BallotPaperCount