pub struct StandardClock { /* private fields */ }
Expand description
A clock with nanosecond precision.
To construct a clock, use StandardClock::default().
The clock is “started” when it is constructed.
§Limitations
The clock represents up to ~584 years worth of time, after which it will roll over.
Trait Implementations§
Source§impl Clock for StandardClock
impl Clock for StandardClock
Source§impl Clone for StandardClock
impl Clone for StandardClock
Source§fn clone(&self) -> StandardClock
fn clone(&self) -> StandardClock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StandardClock
impl Debug for StandardClock
Source§impl Default for StandardClock
impl Default for StandardClock
impl Copy for StandardClock
Auto Trait Implementations§
impl Freeze for StandardClock
impl RefUnwindSafe for StandardClock
impl Send for StandardClock
impl Sync for StandardClock
impl Unpin for StandardClock
impl UnwindSafe for StandardClock
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