pub fn calculate_worst(
    segments: &[Segment],
    use_current_run: bool,
    method: TimingMethod,
) -> Option<TimeSpan> {
    let mut predictions = vec![None; segments.len() + 1];
    worst::calculate(segments, &mut predictions, use_current_run, method)
}
/// Calculates the Sum of Worst Segments for the timing method provided. This is
/// the slowest time possible to complete a run of a category, based on
/// information collected from all the previous attempts. This obviously isn't
/// really the worst possible time, but may be useful information regardless.
/// If there's an active attempt, you can choose to take it into account as
/// well.
Calculates the Sum of Worst Segments for the timing method provided. This is
the slowest time possible to complete a run of a category, based on
information collected from all the previous attempts. This obviously isn't
really the worst possible time, but may be useful information regardless.
If there's an active attempt, you can choose to take it into account as
well.
Calculates the Sum of Worst Segments for the timing method provided . This is the slowest time possible to complete a run of a category based on information collected from all the previous attempts . This obviously isn ' t really the worst possible time but may be useful information regardless . If there ' s an active attempt you can choose to take it into account as well .
pub fn calculate_worst(
    segments: &[Segment],
    use_current_run: bool,
    method: TimingMethod,
) -> Option<TimeSpan> {
    let mut predictions = vec![None; segments.len() + 1];
    worst::calculate(segments, &mut predictions, use_current_run, method)
}
pub fn calculate_worst ( segments : & [ Segment ] , use_current_run : bool , method : TimingMethod , ) -> Option < TimeSpan > { let mut predictions = vec ! [ None segments len ( ) 1 ] ; worst :: calculate ( segments , & mut predictions , use_current_run , method ) }
Calculates the Sum of Worst Segments for the timing method provided.
Calculates the Sum of Worst Segments for the timing method provided .
segments
&[Segment]
use_current_run
bool
method
TimingMethod
segments
&[Segment]
use_current_run
bool
method
TimingMethod