pub fn generate_goal_comparison(&mut self, time: TimeSpan) {
        if !self
            .run
            .custom_comparisons()
            .iter()
            .any(|c| c == comparison::goal::NAME)
        {
            self.run
                .custom_comparisons_mut()
                .push(String::from(comparison::goal::NAME));
        }

        comparison::goal::generate_for_timing_method(
            &mut self.run.segments_mut(),
            self.selected_method,
            time,
            comparison::goal::NAME,
        );

        self.raise_run_edited();
    }
/// Generates a custom goal comparison based on the goal time provided. The
/// comparison's times are automatically balanced based on the runner's
/// history such that it roughly represents what split times for the goal
/// time would roughly look like. Since it is populated by the runner's
/// history, only goal times within the sum of the best segments and the sum
/// of the worst segments are supported. Everything else is automatically
/// capped by that range. The comparison is only populated for the selected
/// timing method. The other timing method's comparison times are not
/// modified by this, so you can call this again with the other timing
/// method to generate the comparison times for both timing methods.
Generates a custom goal comparison based on the goal time provided. The
comparison's times are automatically balanced based on the runner's
history such that it roughly represents what split times for the goal
time would roughly look like. Since it is populated by the runner's
history, only goal times within the sum of the best segments and the sum
of the worst segments are supported. Everything else is automatically
capped by that range. The comparison is only populated for the selected
timing method. The other timing method's comparison times are not
modified by this, so you can call this again with the other timing
method to generate the comparison times for both timing methods.
Generates a custom goal comparison based on the goal time provided . The comparison ' s times are automatically balanced based on the runner ' s history such that it roughly represents what split times for the goal time would roughly look like . Since it is populated by the runner ' s history only goal times within the sum of the best segments and the sum of the worst segments are supported . Everything else is automatically capped by that range . The comparison is only populated for the selected timing method . The other timing method ' s comparison times are not modified by this so you can call this again with the other timing method to generate the comparison times for both timing methods .
pub fn generate_goal_comparison(&mut self, time: TimeSpan) {
        if !self
            .run
            .custom_comparisons()
            .iter()
            .any(|c| c == comparison::goal::NAME)
        {
            self.run
                .custom_comparisons_mut()
                .push(String::from(comparison::goal::NAME));
        }
        comparison::goal::generate_for_timing_method(
            &mut self.run.segments_mut(),
            self.selected_method,
            time,
            comparison::goal::NAME,
        );
        self.raise_run_edited();
    }
pub fn generate_goal_comparison ( & mut self , time : TimeSpan ) { if ! self . run . custom_comparisons ( ) . iter ( ) . any ( | c | c == comparison :: goal :: NAME ) { self . run . custom_comparisons_mut ( ) . push ( String :: from ( comparison :: goal :: NAME ) ) ; } comparison :: goal :: generate_for_timing_method ( & mut self . run . segments_mut ( ) , self . selected_method , time , comparison :: goal :: NAME , ) ; self . raise_run_edited ( ) ; }
Generates a custom goal comparison based on the goal time provided.
Generates a custom goal comparison based on the goal time provided .
&mut self
time
TimeSpan
&mut self
time
TimeSpan