pub struct Clock(pub fn() -> u64);Expand description
A monotonic microsecond source, installed as a world resource by the host.
World::step reads it once per tick and brackets each system with it. Only
differences are used, so the epoch is the host’s to choose; it must be
monotonic within a process.
Tuple Fields§
§0: fn() -> u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more