Enum icu::timezone::ZoneVariant
source · #[non_exhaustive]#[repr(u8)]pub enum ZoneVariant {
Standard = 0,
Daylight = 1,
}
Expand description
A time zone variant, representing the currently observed relative offset.
The semantics vary from time zone to time zone and could represent concepts such as Standard time, Daylight time, Summer time, or Ramadan time.
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 = 0
The variant corresponding to "standard"
in CLDR.
The semantics vary from time zone to time zone. The time zone display name of this variant may or may not be called “Standard Time”.
Daylight = 1
The variant corresponding to "daylight"
in CLDR.
The semantics vary from time zone to time zone. The time zone display name of this variant may or may not be called “Daylight Time”.
Trait Implementations§
source§impl AsULE for ZoneVariant
impl AsULE for ZoneVariant
source§fn to_unaligned(self) -> <ZoneVariant as AsULE>::ULE
fn to_unaligned(self) -> <ZoneVariant as AsULE>::ULE
source§fn from_unaligned(other: <ZoneVariant as AsULE>::ULE) -> ZoneVariant
fn from_unaligned(other: <ZoneVariant as AsULE>::ULE) -> ZoneVariant
source§impl Bake for ZoneVariant
impl Bake for ZoneVariant
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for ZoneVariant
impl BakeSize for ZoneVariant
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for ZoneVariant
impl Clone for ZoneVariant
source§fn clone(&self) -> ZoneVariant
fn clone(&self) -> ZoneVariant
Returns a copy 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 Debug for ZoneVariant
impl Debug for ZoneVariant
source§impl<'de> Deserialize<'de> for ZoneVariant
impl<'de> Deserialize<'de> for ZoneVariant
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZoneVariant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZoneVariant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<C, A, Z> GetField<ZoneVariant> for CustomZonedDateTime<A, Z>
impl<C, A, Z> GetField<ZoneVariant> for CustomZonedDateTime<A, Z>
source§fn get_field(&self) -> ZoneVariant
fn get_field(&self) -> ZoneVariant
Returns the value of this trait’s field
T
.source§impl<O> GetField<ZoneVariant> for TimeZoneInfo<O>where
O: TimeZoneModel<ZoneVariant = ZoneVariant>,
impl<O> GetField<ZoneVariant> for TimeZoneInfo<O>where
O: TimeZoneModel<ZoneVariant = ZoneVariant>,
source§fn get_field(&self) -> ZoneVariant
fn get_field(&self) -> ZoneVariant
Returns the value of this trait’s field
T
.source§impl Hash for ZoneVariant
impl Hash for ZoneVariant
source§impl IntoOption<ZoneVariant> for ZoneVariant
impl IntoOption<ZoneVariant> for ZoneVariant
source§fn into_option(self) -> Option<ZoneVariant>
fn into_option(self) -> Option<ZoneVariant>
Return
self
as an Option<T>
source§impl Ord for ZoneVariant
impl Ord for ZoneVariant
source§fn cmp(&self, other: &ZoneVariant) -> Ordering
fn cmp(&self, other: &ZoneVariant) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ZoneVariant
impl PartialEq for ZoneVariant
source§impl PartialOrd for ZoneVariant
impl PartialOrd for ZoneVariant
source§impl Serialize for ZoneVariant
impl Serialize for ZoneVariant
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ZeroMapKV<'a> for ZoneVariant
impl<'a> ZeroMapKV<'a> for ZoneVariant
source§type Container = ZeroVec<'a, ZoneVariant>
type Container = ZeroVec<'a, ZoneVariant>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<ZoneVariant>
source§type OwnedType = ZoneVariant
type OwnedType = ZoneVariant
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read moreimpl Copy for ZoneVariant
impl Eq for ZoneVariant
impl StructuralPartialEq for ZoneVariant
Auto Trait Implementations§
impl Freeze for ZoneVariant
impl RefUnwindSafe for ZoneVariant
impl Send for ZoneVariant
impl Sync for ZoneVariant
impl Unpin for ZoneVariant
impl UnwindSafe for ZoneVariant
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more