#[non_exhaustive]pub enum TimeType {
Standard,
Daylight,
Universal,
}
Expand description
Disambiguates a given time in two ways.
First, specifies if the given time is in universal or local time.
Second, if the time is in local time, specifies if it is local standard time or local daylight time. This is important for the case where the same local time occurs twice (during daylight savings time transitions, for example).
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.
Standard
the time is in local standard time
Daylight
the time is in local daylight time
Universal
the time is in UTC
Trait Implementations§
Source§impl Ord for TimeType
impl Ord for TimeType
Source§impl PartialOrd for TimeType
impl PartialOrd for TimeType
impl Copy for TimeType
impl Eq for TimeType
impl StructuralPartialEq for TimeType
Auto Trait Implementations§
impl Freeze for TimeType
impl RefUnwindSafe for TimeType
impl Send for TimeType
impl Sync for TimeType
impl Unpin for TimeType
impl UnwindSafe for TimeType
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