pub fn switch_to_next_comparison(&mut self) {
        let mut comparisons = self.run.comparisons();
        let len = comparisons.len();
        let index = comparisons
            .position(|c| c == self.current_comparison)
            .unwrap();
        let index = (index + 1) % len;
        self.current_comparison = self.run.comparisons().nth(index).unwrap().to_owned();

        // FIXME: OnNextComparison
    }
/// Switches the current comparison to the next comparison in the list.
Switches the current comparison to the next comparison in the list.
Switches the current comparison to the next comparison in the list .
pub fn switch_to_next_comparison(&mut self) {
        let mut comparisons = self.run.comparisons();
        let len = comparisons.len();
        let index = comparisons
            .position(|c| c == self.current_comparison)
            .unwrap();
        let index = (index + 1) % len;
        self.current_comparison = self.run.comparisons().nth(index).unwrap().to_owned();
        // FIXME: OnNextComparison
    }
pub fn switch_to_next_comparison ( & mut self ) { let mut comparisons = self . run . comparisons ( ) ; let len = comparisons . len ( ) ; let index = comparisons . position ( | c | c == self . current_comparison ) . unwrap ( ) ; let index = ( index + 1 ) % len ; self . current_comparison = self . run . comparisons ( ) . nth ( index ) . unwrap ( ) . to_owned ( ) ; // FIXME: OnNextComparison }
Switches the current comparison to the next comparison in the list.
Switches the current comparison to the next comparison in the list .
&mut self
&mut self