pub enum StorageType {
Zero,
Ticks,
Nanos,
FloatNanos,
}Expand description
Describes the possible internal storage types for a Duration.
Variants§
Zero
A zero-length Duration.
Ticks
Stores ticks and frequency.
Nanos
Stores whole nanoseconds.
FloatNanos
Stores floating-point nanoseconds.
Trait Implementations§
Source§impl Clone for StorageType
impl Clone for StorageType
impl Copy for StorageType
Source§impl Debug for StorageType
impl Debug for StorageType
impl Eq for StorageType
Source§impl Hash for StorageType
impl Hash for StorageType
Source§impl Ord for StorageType
impl Ord for StorageType
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for StorageType
impl PartialEq for StorageType
Source§impl PartialOrd for StorageType
impl PartialOrd for StorageType
impl StructuralPartialEq for StorageType
Auto Trait Implementations§
impl Freeze for StorageType
impl RefUnwindSafe for StorageType
impl Send for StorageType
impl Sync for StorageType
impl Unpin for StorageType
impl UnsafeUnpin for StorageType
impl UnwindSafe for StorageType
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