Struct livesplit_core::Time
[−]
[src]
pub struct Time { pub real_time: Option<TimeSpan>, pub game_time: Option<TimeSpan>, }
Fields
real_time: Option<TimeSpan>
game_time: Option<TimeSpan>
Methods
impl Time
[src]
fn new() -> Self
[src]
fn zero() -> Self
[src]
fn with_real_time(self, real_time: Option<TimeSpan>) -> Self
[src]
fn with_game_time(self, game_time: Option<TimeSpan>) -> Self
[src]
fn with_timing_method(
self,
timing_method: TimingMethod,
time: Option<TimeSpan>
) -> Self
[src]
self,
timing_method: TimingMethod,
time: Option<TimeSpan>
) -> Self
fn op<F>(a: Time, b: Time, f: F) -> Time where
F: FnMut(TimeSpan, TimeSpan) -> TimeSpan,
[src]
F: FnMut(TimeSpan, TimeSpan) -> TimeSpan,
Trait Implementations
impl Copy for Time
[src]
impl Clone for Time
[src]
fn clone(&self) -> Time
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Time
[src]
impl Debug for Time
[src]
impl Eq for Time
[src]
impl PartialEq for Time
[src]
fn eq(&self, __arg_0: &Time) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
[src]
This method tests for !=
.
impl From<RealTime> for Time
[src]
impl From<GameTime> for Time
[src]
impl Add for Time
[src]
type Output = Time
The resulting type after applying the +
operator.
fn add(self, rhs: Time) -> Self
[src]
Performs the +
operation.
impl AddAssign for Time
[src]
fn add_assign(&mut self, rhs: Time)
[src]
Performs the +=
operation.
impl Sub for Time
[src]
type Output = Time
The resulting type after applying the -
operator.
fn sub(self, rhs: Time) -> Self
[src]
Performs the -
operation.
impl SubAssign for Time
[src]
fn sub_assign(&mut self, rhs: Time)
[src]
Performs the -=
operation.
impl Index<TimingMethod> for Time
[src]
type Output = Option<TimeSpan>
The returned type after indexing.
fn index(&self, timing_method: TimingMethod) -> &Self::Output
[src]
Performs the indexing (container[index]
) operation.
impl IndexMut<TimingMethod> for Time
[src]
fn index_mut(&mut self, timing_method: TimingMethod) -> &mut Self::Output
[src]
Performs the mutable indexing (container[index]
) operation.