#[non_exhaustive]pub enum TimeUnits {
Show 13 variants
Year,
Month,
Week,
Day,
Hour,
Minute,
Second,
Millisecond,
Microsecond,
Nanosecond,
Picosecond,
Femtosecond,
Attosecond,
}
Expand description
Represents the units of the m
and M
datatypes in a TypeStr
.
These appear inside square brackets at the end of the string for these datatypes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Year
Code Y
.
Month
Code M
.
Week
Code W
.
Day
Code D
.
Hour
Code h
.
Minute
Code m
.
Second
Code s
.
Millisecond
Code ms
.
Microsecond
Code us
.
Nanosecond
Code ns
.
Picosecond
Code ps
.
Femtosecond
Code fs
.
Attosecond
Code as
.
Implementations§
Trait Implementations§
source§impl PartialEq for TimeUnits
impl PartialEq for TimeUnits
impl Copy for TimeUnits
impl Eq for TimeUnits
impl StructuralEq for TimeUnits
impl StructuralPartialEq for TimeUnits
Auto Trait Implementations§
impl RefUnwindSafe for TimeUnits
impl Send for TimeUnits
impl Sync for TimeUnits
impl Unpin for TimeUnits
impl UnwindSafe for TimeUnits
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