pub enum TimeUnit {
Show 20 variants
Microsecond,
Second,
Minute,
Hour,
Day,
Week,
Month,
Quarter,
Year,
SecondMicrosecond,
MinuteMicrosecond,
MinuteSecond,
HourMicrosecond,
HourSecond,
HourMinute,
DayMicrosecond,
DaySecond,
DayMinute,
DayHour,
YearMonth,
}Expand description
Units of time
Variants§
Microsecond
Microseconds
Second
Seconds
Minute
Minutes
Hour
Hours
Day
Days
Week
Weeks
Month
Months
Quarter
Quarters
Year
Years
SecondMicrosecond
Seconds.Microseconds
MinuteMicrosecond
Minutes.Seconds.Microseconds
MinuteSecond
Minutes.Seconds
HourMicrosecond
Hours.Minutes.Seconds.Microseconds
HourSecond
Hours.Minutes.Seconds
HourMinute
Hours.Minutes
DayMicrosecond
Days Hours.Minutes.Seconds.Microseconds
DaySecond
Days Hours.Minutes.Seconds
DayMinute
Days Hours.Minutes
DayHour
Days Hours
YearMonth
Years-Months
Trait Implementations§
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