Struct icu_timezone::ZoneVariant
source · #[repr(transparent)]pub struct ZoneVariant(pub TinyAsciiStr<2>);
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.
Tuple Fields§
§0: TinyAsciiStr<2>
Implementations§
source§impl ZoneVariant
impl ZoneVariant
Trait Implementations§
source§impl AsULE for ZoneVariant
impl AsULE for ZoneVariant
source§type ULE = ZoneVariant
type ULE = ZoneVariant
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<Self>
fn into_option(self) -> Option<Self>
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§impl ULE for ZoneVariant
impl ULE for ZoneVariant
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
Validates a byte slice,
&[u8]
. Read more§fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], UleError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], UleError>
§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 more§fn as_byte_slice(slice: &[Self]) -> &[u8] ⓘ
fn as_byte_slice(slice: &[Self]) -> &[u8] ⓘ
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 GetType = ZoneVariant
type GetType = ZoneVariant
The type produced by
Container::get()
Read moresource§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