pub fn generate_for_timing_method(
    segments: &mut [Segment],
    method: TimingMethod,
    goal_time: TimeSpan,
    comparison: &str,
) {
    let mut skill_curve = SkillCurve::new();

    generate_for_timing_method_with_buf(
        segments,
        method,
        Some(goal_time),
        comparison,
        &mut skill_curve,
    );
}
/// Populates the segments with a goal comparison for the timing method
/// specified. Every other timing method is left untouched. The segment history
/// is used to generate comparison times such that they end up with the goal
/// time specified. The values are stored in the comparison with the name
/// provided. Only the range between the sum of the best segments and the sum of
/// the worst segments is supported. Every other goal time is capped within that
/// range.
Populates the segments with a goal comparison for the timing method
specified. Every other timing method is left untouched. The segment history
is used to generate comparison times such that they end up with the goal
time specified. The values are stored in the comparison with the name
provided. Only the range between the sum of the best segments and the sum of
the worst segments is supported. Every other goal time is capped within that
range.
Populates the segments with a goal comparison for the timing method specified . Every other timing method is left untouched . The segment history is used to generate comparison times such that they end up with the goal time specified . The values are stored in the comparison with the name provided . Only the range between the sum of the best segments and the sum of the worst segments is supported . Every other goal time is capped within that range .
pub fn generate_for_timing_method(
    segments: &mut [Segment],
    method: TimingMethod,
    goal_time: TimeSpan,
    comparison: &str,
) {
    let mut skill_curve = SkillCurve::new();
    generate_for_timing_method_with_buf(
        segments,
        method,
        Some(goal_time),
        comparison,
        &mut skill_curve,
    );
}
pub fn generate_for_timing_method ( segments : & mut [ Segment ] , method : TimingMethod , goal_time : TimeSpan , comparison : & str , ) { let mut skill_curve = SkillCurve :: new ( ) ; generate_for_timing_method_with_buf ( segments , method , Some ( goal_time ) , comparison , & mut skill_curve , ) ; }
Populates the segments with a goal comparison for the timing method
specified.
Populates the segments with a goal comparison for the timing method specified .
segments
&mut [Segment]
method
TimingMethod
goal_time
TimeSpan
comparison
&str
segments
&mut [Segment]
method
TimingMethod
goal_time
TimeSpan
comparison
&str