pub struct FakeInstant { /* private fields */ }Trait Implementations§
Source§impl Clone for FakeInstant
impl Clone for FakeInstant
Source§fn clone(&self) -> FakeInstant
fn clone(&self) -> FakeInstant
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TickInstant for FakeInstant
impl TickInstant for FakeInstant
fn frequency() -> Rate<u32, 1000, 1>
fn now() -> FakeInstant
Source§fn tick_since(self, earlier: FakeInstant) -> u32
fn tick_since(self, earlier: FakeInstant) -> u32
Returns the amount of ticks elapsed from another instant to this one.
Source§fn tick_elapsed(self) -> u32
fn tick_elapsed(self) -> u32
Returns the amount of ticks elapsed since this instant.
impl Copy for FakeInstant
Auto Trait Implementations§
impl Freeze for FakeInstant
impl RefUnwindSafe for FakeInstant
impl Send for FakeInstant
impl Sync for FakeInstant
impl Unpin for FakeInstant
impl UnwindSafe for FakeInstant
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)