pub enum Time {
Millisecond(Ms),
Second(S),
}Expand description
Variants§
Implementations§
Source§impl Time
impl Time
Sourcepub const fn is_millisecond(&self) -> bool
pub const fn is_millisecond(&self) -> bool
Returns true if the enum is Time::Millisecond otherwise false
Trait Implementations§
Source§impl MillisecondStorage for Time
impl MillisecondStorage for Time
Source§impl SecondStorage for Time
impl SecondStorage for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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