pub fn calculate_worst(
    segments: &[Segment],
    use_current_run: bool,
    method: TimingMethod
) -> Option<TimeSpan>
Expand description

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.