pub fn check_for_ties_and_resolve_inplace(&mut self,to_check:Range<usize>,how:MethodOfTieResolution,granularity:TieResolutionGranularityNeeded) {
        // can't just pass a mutable reference to self.continuing_candidates_sorted_by_tally[to_check] as there would be 2 mutable refs :-(
        let mut tied_candidates = self.continuing_candidates_sorted_by_tally[to_check.clone()].to_vec();
        self.check_for_ties_and_resolve(&mut tied_candidates,how,granularity);
        self.continuing_candidates_sorted_by_tally[to_check].copy_from_slice(&tied_candidates); // copy resolved order back.
    }
/// Like check_for_ties_and_resolve but do in place on self.continuing_candidates_sorted_by_tally for the indices given in to_check
Like check_for_ties_and_resolve but do in place on self.continuing_candidates_sorted_by_tally for the indices given in to_check
Like check_for_ties_and_resolve but do in place on self . continuing_candidates_sorted_by_tally for the indices given in to_check
pub fn check_for_ties_and_resolve_inplace(&mut self,to_check:Range<usize>,how:MethodOfTieResolution,granularity:TieResolutionGranularityNeeded) {
        // can't just pass a mutable reference to self.continuing_candidates_sorted_by_tally[to_check] as there would be 2 mutable refs :-(
        let mut tied_candidates = self.continuing_candidates_sorted_by_tally[to_check.clone()].to_vec();
        self.check_for_ties_and_resolve(&mut tied_candidates,how,granularity);
        self.continuing_candidates_sorted_by_tally[to_check].copy_from_slice(&tied_candidates); // copy resolved order back.
    }
pub fn check_for_ties_and_resolve_inplace ( & mut self , to_check : Range < usize > , how : MethodOfTieResolution , granularity : TieResolutionGranularityNeeded ) { // can't just pass a mutable reference to self.continuing_candidates_sorted_by_tally[to_check] as there would be 2 mutable refs :-( let mut tied_candidates = self . continuing_candidates_sorted_by_tally [ to_check . clone ( ) ] . to_vec ( ) ; self . check_for_ties_and_resolve ( & mut tied_candidates , how , granularity ) ; self . continuing_candidates_sorted_by_tally [ to_check ] . copy_from_slice ( & tied_candidates ) ; // copy resolved order back. }
Like check_for_ties_and_resolve but do in place on self.continuing_candidates_sorted_by_tally for the indices given in to_check
Like check_for_ties_and_resolve but do in place on self . continuing_candidates_sorted_by_tally for the indices given in to_check
&mut self
to_check
Range<usize>
how
MethodOfTieResolution
granularity
TieResolutionGranularityNeeded
&mut self
to_check
Range<usize>
how
MethodOfTieResolution
granularity
TieResolutionGranularityNeeded