pub enum TimeUnit {
Second,
Millisecond,
Microsecond,
Nanosecond,
}
Expand description
An absolute length of time in seconds, milliseconds, microseconds or nanoseconds.
Variants§
Second
Time in seconds.
Millisecond
Time in milliseconds.
Microsecond
Time in microseconds.
Nanosecond
Time in nanoseconds.
Trait Implementations§
Source§impl Ord for TimeUnit
impl Ord for TimeUnit
Source§impl PartialOrd for TimeUnit
impl PartialOrd for TimeUnit
impl Copy for TimeUnit
impl Eq for TimeUnit
impl StructuralPartialEq for TimeUnit
Auto Trait Implementations§
impl Freeze for TimeUnit
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnwindSafe for TimeUnit
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