pub fn remove_comparison(&mut self, comparison: &str) {
        if comparison == comparison::personal_best::NAME {
            return;
        }

        self.run
            .custom_comparisons_mut()
            .retain(|c| c != comparison);

        if self.run.comparisons().any(|c| c == comparison) {
            return;
        }

        for segment in self.run.segments_mut() {
            segment.comparisons_mut().remove(comparison);
        }

        self.fix();
    }
/// Removes the chosen custom comparison. You can't remove a Comparison
/// Generator's Comparison or the Personal Best.
Removes the chosen custom comparison. You can't remove a Comparison
Generator's Comparison or the Personal Best.
Removes the chosen custom comparison . You can ' t remove a Comparison Generator ' s Comparison or the Personal Best .
pub fn remove_comparison(&mut self, comparison: &str) {
        if comparison == comparison::personal_best::NAME {
            return;
        }
        self.run
            .custom_comparisons_mut()
            .retain(|c| c != comparison);
        if self.run.comparisons().any(|c| c == comparison) {
            return;
        }
        for segment in self.run.segments_mut() {
            segment.comparisons_mut().remove(comparison);
        }
        self.fix();
    }
pub fn remove_comparison ( & mut self , comparison : & str ) { if comparison == comparison :: personal_best :: NAME { return ; } self . run . custom_comparisons_mut ( ) . retain ( | c | c != comparison ) ; if self . run . comparisons ( ) . any ( | c | c == comparison ) { return ; } for segment in self . run . segments_mut ( ) { segment . comparisons_mut ( ) . remove ( comparison ) ; } self . fix ( ) ; }
Removes the chosen custom comparison.
Removes the chosen custom comparison .
&mut self
comparison
&str
&mut self
comparison
&str