Struct icu::timezone::ZoneVariant
source · #[repr(transparent)]pub struct ZoneVariant(pub TinyAsciiStr<2>);
Expand description
A time zone variant: currently either daylight time or standard time.
Tuple Fields§
§0: TinyAsciiStr<2>
Implementations§
source§impl ZoneVariant
impl ZoneVariant
sourcepub const fn standard() -> ZoneVariant
pub const fn standard() -> ZoneVariant
Return the standard time ZoneVariant
.
Corresponds to the "standard"
variant string in CLDR.
sourcepub const fn daylight() -> ZoneVariant
pub const fn daylight() -> ZoneVariant
Return the daylight time ZoneVariant
Corresponds to the "daylight"
variant string in CLDR.
Trait Implementations§
source§impl AsULE for ZoneVariant
impl AsULE for ZoneVariant
§type ULE = ZoneVariant
type ULE = ZoneVariant
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> <ZoneVariant as AsULE>::ULE
fn to_unaligned(self) -> <ZoneVariant as AsULE>::ULE
source§fn from_unaligned(unaligned: <ZoneVariant as AsULE>::ULE) -> ZoneVariant
fn from_unaligned(unaligned: <ZoneVariant as AsULE>::ULE) -> ZoneVariant
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 From<TinyAsciiStr<2>> for ZoneVariant
impl From<TinyAsciiStr<2>> for ZoneVariant
source§fn from(other: TinyAsciiStr<2>) -> ZoneVariant
fn from(other: TinyAsciiStr<2>) -> ZoneVariant
Converts to this type from the input type.
source§impl FromStr for ZoneVariant
impl FromStr for ZoneVariant
source§impl Hash for ZoneVariant
impl Hash for ZoneVariant
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§fn eq(&self, other: &ZoneVariant) -> bool
fn eq(&self, other: &ZoneVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ZoneVariant
impl PartialOrd for ZoneVariant
source§fn partial_cmp(&self, other: &ZoneVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &ZoneVariant) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ULE for ZoneVariant
impl ULE for ZoneVariant
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice,
&[u8]
. Read more§fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
§unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
Takes a byte slice,
&[u8]
, and return it as &[Self]
with the same lifetime, assuming
that this byte slice has previously been run through [Self::parse_byte_slice()
] with
success. Read moresource§impl<'a> ZeroMapKV<'a> for ZoneVariant
impl<'a> ZeroMapKV<'a> for ZoneVariant
§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>
§type GetType = ZoneVariant
type GetType = ZoneVariant
The type produced by
Container::get()
Read more§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 StructuralEq for ZoneVariant
impl StructuralPartialEq for ZoneVariant
Auto Trait Implementations§
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