Struct sixtyfps_corelib::animations::Instant
source · [−]#[repr(transparent)]pub struct Instant(pub u64);Expand description
Represent an instant, in milliseconds since the AnimationDriver’s initial_instant
Tuple Fields
0: u64Implementations
Returns the amount of time elapsed since an other instant.
Equivalent to self - earlier
Wrapper around std::time::Instant::now() that delegates to the backend
and allows working in no_std environments.
Trait Implementations
Performs the += operation. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Performs the -= operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Instant
impl UnwindSafe for Instant
Blanket Implementations
Mutably borrows from an owned value. Read more