pub struct ClockTime(pub Duration);Expand description
A virtual time value measured as a Duration since the clock’s anchor.
Internally just a wrapper around Duration; cheap to copy.
Tuple Fields§
§0: DurationImplementations§
Trait Implementations§
Source§impl Ord for ClockTime
impl Ord for ClockTime
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ClockTime
impl PartialOrd for ClockTime
impl Copy for ClockTime
impl Eq for ClockTime
impl StructuralPartialEq for ClockTime
Auto Trait Implementations§
impl Freeze for ClockTime
impl RefUnwindSafe for ClockTime
impl Send for ClockTime
impl Sync for ClockTime
impl Unpin for ClockTime
impl UnsafeUnpin for ClockTime
impl UnwindSafe for ClockTime
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