#[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>
impl<'a, T: Clone + EncodingType> Clone for TimeZoneRecord<'a, T>
Source§fn clone(&self) -> TimeZoneRecord<'a, T>
fn clone(&self) -> TimeZoneRecord<'a, T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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: Debug + EncodingType> Debug for TimeZoneRecord<'a, T>
impl<'a, T: Debug + EncodingType> Debug for TimeZoneRecord<'a, T>
Source§impl<'a, T: PartialEq + EncodingType> PartialEq for TimeZoneRecord<'a, T>
impl<'a, T: PartialEq + EncodingType> PartialEq for TimeZoneRecord<'a, T>
Source§fn eq(&self, other: &TimeZoneRecord<'a, T>) -> bool
fn eq(&self, other: &TimeZoneRecord<'a, T>) -> bool
Tests for
self and other values to be equal, and is used by ==.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>
impl<'a, T> Send for TimeZoneRecord<'a, T>
impl<'a, T> Sync for TimeZoneRecord<'a, T>
impl<'a, T> Unpin for TimeZoneRecord<'a, T>
impl<'a, T> UnsafeUnpin for TimeZoneRecord<'a, T>
impl<'a, T> UnwindSafe for TimeZoneRecord<'a, T>
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