pub fn parse_and_generate_goal_comparison<S>(&mut self, time: S) -> Result<(), ParseError>
    where
        S: AsRef<str>,
    {
        self.generate_goal_comparison(
            parse_positive(time)?.ok_or(ParseError::EmptyTimeNotAllowed)?,
        );
        Ok(())
    }
/// Parses a goal time and generates a custom goal comparison based on the
/// parsed value. 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.
Parses a goal time and generates a custom goal comparison based on the
parsed value. 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.
Parses a goal time and generates a custom goal comparison based on the parsed value . 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 parse_and_generate_goal_comparison<S>(&mut self, time: S) -> Result<(), ParseError>
    where
        S: AsRef<str>,
    {
        self.generate_goal_comparison(
            parse_positive(time)?.ok_or(ParseError::EmptyTimeNotAllowed)?,
        );
        Ok(())
    }
pub fn parse_and_generate_goal_comparison < S > ( & mut self , time : S ) -> Result < ( ) , ParseError > where S : AsRef < str > , { self . generate_goal_comparison ( parse_positive ( time ) ? . ok_or ( ParseError :: EmptyTimeNotAllowed ) ? , ) ; Ok ( ( ) ) }
Parses a goal time and generates a custom goal comparison based on the
parsed value.
Parses a goal time and generates a custom goal comparison based on the parsed value .
&mut self
time
S
&mut self
time
S