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
fn zero() -> Self
fn with_real_time(self, real_time: Option<TimeSpan>) -> Self
fn with_game_time(self, game_time: Option<TimeSpan>) -> Self
fn with_timing_method(
self,
timing_method: TimingMethod,
time: Option<TimeSpan>
) -> Self
self,
timing_method: TimingMethod,
time: Option<TimeSpan>
) -> Self
fn op<F>(a: Time, b: Time, f: F) -> Time where
F: FnMut(TimeSpan, TimeSpan) -> TimeSpan,
F: FnMut(TimeSpan, TimeSpan) -> TimeSpan,
Trait Implementations
impl Copy for Time
[src]
impl Clone for Time
[src]
fn clone(&self) -> Time
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
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
The method for the +
operator
impl Sub for Time
[src]
type Output = Time
The resulting type after applying the -
operator
fn sub(self, rhs: Time) -> Self
The method for the -
operator
impl Index<TimingMethod> for Time
[src]
type Output = Option<TimeSpan>
The returned type after indexing
fn index(&self, timing_method: TimingMethod) -> &Self::Output
The method for the indexing (container[index]
) operation
impl IndexMut<TimingMethod> for Time
[src]
fn index_mut(&mut self, timing_method: TimingMethod) -> &mut Self::Output
The method for the mutable indexing (container[index]
) operation