pub fn extract_last_parcel(&'_ mut self) -> (VotesWithSameTransferValue<'a>,PortionOfReasonBeingDoneThisCount) {
        if let Some(last_parcel) = self.last_parcel.take() {
            let key = (S::key(last_parcel.count_index,last_parcel.when_tv_created),last_parcel.transfer_value.clone());
            let (_,votes) = self.by_provenance.get_mut(&key).expect("Last parcel has vanished!");
            let res = votes.extract_last_parcel(last_parcel.prior_state);
            let provenance = PortionOfReasonBeingDoneThisCount{
                transfer_value: Some(last_parcel.transfer_value),
                when_tv_created: last_parcel.when_tv_created,
                papers_came_from_counts: vec![last_parcel.count_index],
            };
            (res,provenance)
        } else {
            panic!("No last parcel");
        }
    }
/// Removes the last parcel from this object, returning the object created.
Removes the last parcel from this object, returning the object created.
Removes the last parcel from this object returning the object created .
pub fn extract_last_parcel(&'_ mut self) -> (VotesWithSameTransferValue<'a>,PortionOfReasonBeingDoneThisCount) {
        if let Some(last_parcel) = self.last_parcel.take() {
            let key = (S::key(last_parcel.count_index,last_parcel.when_tv_created),last_parcel.transfer_value.clone());
            let (_,votes) = self.by_provenance.get_mut(&key).expect("Last parcel has vanished!");
            let res = votes.extract_last_parcel(last_parcel.prior_state);
            let provenance = PortionOfReasonBeingDoneThisCount{
                transfer_value: Some(last_parcel.transfer_value),
                when_tv_created: last_parcel.when_tv_created,
                papers_came_from_counts: vec![last_parcel.count_index],
            };
            (res,provenance)
        } else {
            panic!("No last parcel");
        }
    }
pub fn extract_last_parcel ( & ' _ mut self ) -> ( VotesWithSameTransferValue < ' a > , PortionOfReasonBeingDoneThisCount ) { if let Some ( last_parcel ) = self . last_parcel . take ( ) { let key = ( S :: key ( last_parcel . count_index , last_parcel . when_tv_created ) , last_parcel . transfer_value . clone ( ) ) ; let ( _ , votes ) = self . by_provenance . get_mut ( & key ) . expect ( " " ) ; let res = votes . extract_last_parcel ( last_parcel . prior_state ) ; let provenance = PortionOfReasonBeingDoneThisCount { transfer_value : Some ( last_parcel . transfer_value ) , when_tv_created : last_parcel . when_tv_created , papers_came_from_counts : vec ! [ last_parcel count_index ] , } ; ( res , provenance ) } else { panic ! ( " " ) ; } }
Removes the last parcel from this object, returning the object created.
Removes the last parcel from this object returning the object created .
&'_ mut self
&'_ mut self