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 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 From<TinyAsciiStr<2>> for ZoneVariant
impl From<TinyAsciiStr<2>> for ZoneVariant
source§fn from(other: TinyAsciiStr<2>) -> Self
fn from(other: TinyAsciiStr<2>) -> Self
Converts to this type from the input type.
source§impl From<ZoneVariant> for TinyAsciiStr<2>
impl From<ZoneVariant> for TinyAsciiStr<2>
source§fn from(other: ZoneVariant) -> Self
fn from(other: ZoneVariant) -> Self
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§impl PartialOrd for ZoneVariant
impl PartialOrd for ZoneVariant
source§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 moresource§fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
source§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
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
)