#[non_exhaustive]pub enum TimeZoneRecord<'a, T: EncodingType> {
Name(&'a [T::CodeUnit]),
Offset(MinutePrecisionOffset),
}Expand description
Parsed TimeZone data, which can be either a UTC Offset value or IANA Time Zone Name value.
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.
Trait Implementations§
Source§impl<'a, T: Clone + EncodingType> Clone for TimeZoneRecord<'a, T>where
T::CodeUnit: Clone,
impl<'a, T: Clone + EncodingType> Clone for TimeZoneRecord<'a, T>where
T::CodeUnit: Clone,
Source§fn clone(&self) -> TimeZoneRecord<'a, T>
fn clone(&self) -> TimeZoneRecord<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, T: PartialEq + EncodingType> PartialEq for TimeZoneRecord<'a, T>where
T::CodeUnit: PartialEq,
impl<'a, T: PartialEq + EncodingType> PartialEq for TimeZoneRecord<'a, T>where
T::CodeUnit: PartialEq,
impl<'a, T: EncodingType> StructuralPartialEq for TimeZoneRecord<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for TimeZoneRecord<'a, T>
impl<'a, T> RefUnwindSafe for TimeZoneRecord<'a, T>where
<T as EncodingType>::CodeUnit: RefUnwindSafe,
impl<'a, T> Send for TimeZoneRecord<'a, T>where
<T as EncodingType>::CodeUnit: Sync,
impl<'a, T> Sync for TimeZoneRecord<'a, T>where
<T as EncodingType>::CodeUnit: Sync,
impl<'a, T> Unpin for TimeZoneRecord<'a, T>
impl<'a, T> UnwindSafe for TimeZoneRecord<'a, T>where
<T as EncodingType>::CodeUnit: RefUnwindSafe,
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