Struct livesplit_core::AtomicDateTime
[−]
[src]
pub struct AtomicDateTime { pub time: DateTime<Utc>, pub synced_with_atomic_clock: bool, }
Fields
time: DateTime<Utc>
synced_with_atomic_clock: bool
Methods
impl AtomicDateTime
[src]
fn new(time: DateTime<Utc>, synced_with_atomic_clock: bool) -> Self
[src]
fn now() -> Self
[src]
fn option_op<F, R>(
a: Option<AtomicDateTime>,
b: Option<AtomicDateTime>,
f: F
) -> Option<R> where
F: FnOnce(AtomicDateTime, AtomicDateTime) -> R,
[src]
a: Option<AtomicDateTime>,
b: Option<AtomicDateTime>,
f: F
) -> Option<R> where
F: FnOnce(AtomicDateTime, AtomicDateTime) -> R,
Trait Implementations
impl Copy for AtomicDateTime
[src]
impl Clone for AtomicDateTime
[src]
fn clone(&self) -> AtomicDateTime
[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 Debug for AtomicDateTime
[src]
impl PartialEq for AtomicDateTime
[src]
fn eq(&self, __arg_0: &AtomicDateTime) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AtomicDateTime) -> bool
[src]
This method tests for !=
.
impl Sub for AtomicDateTime
[src]
type Output = TimeSpan
The resulting type after applying the -
operator.
fn sub(self, rhs: AtomicDateTime) -> TimeSpan
[src]
Performs the -
operation.