pub fn op<F>(a: Time, b: Time, mut f: F) -> Time
    where
        F: FnMut(TimeSpan, TimeSpan) -> TimeSpan,
    {
        Time {
            real_time: catch! { f(a.real_time?, b.real_time?) },
            game_time: catch! { f(a.game_time?, b.game_time?) },
        }
    }
/// Applies an operation to both Timing Methods of the two times provided
/// and creates a new Time from the result.
Applies an operation to both Timing Methods of the two times provided
and creates a new Time from the result.
Applies an operation to both Timing Methods of the two times provided and creates a new Time from the result .
pub fn op<F>(a: Time, b: Time, mut f: F) -> Time
    where
        F: FnMut(TimeSpan, TimeSpan) -> TimeSpan,
    {
        Time {
            real_time: catch! { f(a.real_time?, b.real_time?) },
            game_time: catch! { f(a.game_time?, b.game_time?) },
        }
    }
pub fn op < F > ( a : Time , b : Time , mut f : F ) -> Time where F : FnMut ( TimeSpan , TimeSpan ) -> TimeSpan , { Time { real_time : catch ! { f ( a real_time b real_time ) } , game_time : catch ! { f ( a game_time b game_time ) } , } }
Applies an operation to both Timing Methods of the two times provided
and creates a new Time from the result.
Applies an operation to both Timing Methods of the two times provided and creates a new Time from the result .
a
Time
b
Time
f
F
a
Time
b
Time
f
F