pub enum TimeUnit {
Minutes,
Hours,
Days,
Weeks,
Months,
Years,
}
Expand description
Represents particular units of time, such as hours, minutes, etc.
Variants§
Trait Implementations§
source§impl Ord for TimeUnit
impl Ord for TimeUnit
source§impl PartialEq for TimeUnit
impl PartialEq for TimeUnit
source§impl PartialOrd for TimeUnit
impl PartialOrd for TimeUnit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TimeUnit
impl Eq for TimeUnit
impl StructuralEq for TimeUnit
impl StructuralPartialEq for TimeUnit
Auto Trait Implementations§
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