Struct icu_datetime::provider::time_zones::MetaZoneId
source · [−]#[repr(transparent)]pub struct MetaZoneId(pub TinyAsciiStr<4>);
Expand description
MetaZone ID in a compact format
Tuple Fields
0: TinyAsciiStr<4>
Trait Implementations
sourceimpl AsULE for MetaZoneId
impl AsULE for MetaZoneId
type ULE = MetaZoneId
type ULE = MetaZoneId
The ULE type corresponding to Self
. Read more
sourcefn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
Converts from Self::ULE
to Self
. Read more
sourceimpl Clone for MetaZoneId
impl Clone for MetaZoneId
sourcefn clone(&self) -> MetaZoneId
fn clone(&self) -> MetaZoneId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MetaZoneId
impl Debug for MetaZoneId
sourceimpl<'de> Deserialize<'de> for MetaZoneId
impl<'de> Deserialize<'de> for MetaZoneId
sourcefn 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
sourceimpl Ord for MetaZoneId
impl Ord for MetaZoneId
sourceimpl PartialEq<MetaZoneId> for MetaZoneId
impl PartialEq<MetaZoneId> for MetaZoneId
sourcefn eq(&self, other: &MetaZoneId) -> bool
fn eq(&self, other: &MetaZoneId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MetaZoneId) -> bool
fn ne(&self, other: &MetaZoneId) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MetaZoneId> for MetaZoneId
impl PartialOrd<MetaZoneId> for MetaZoneId
sourcefn partial_cmp(&self, other: &MetaZoneId) -> Option<Ordering>
fn partial_cmp(&self, other: &MetaZoneId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for MetaZoneId
impl Serialize for MetaZoneId
sourceimpl ULE for MetaZoneId
impl ULE for MetaZoneId
sourcefn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice, &[u8]
. Read more
sourcefn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
Parses a byte slice, &[u8]
, and return it as &[Self]
with the same lifetime. Read more
sourceunsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
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
sourceimpl<'a> Yokeable<'a> for MetaZoneId
impl<'a> Yokeable<'a> for MetaZoneId
type Output = MetaZoneId
type Output = MetaZoneId
This type MUST be Self
with the 'static
replaced with 'a
, i.e. Self<'a>
sourcefn transform(&self) -> &Self::Output
fn transform(&self) -> &Self::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away Self<'a>
’s lifetime. Read more
sourcefn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read more
sourceimpl<'a> ZeroMapKV<'a> for MetaZoneId
impl<'a> ZeroMapKV<'a> for MetaZoneId
type Container = ZeroVec<'a, MetaZoneId>
type Container = ZeroVec<'a, MetaZoneId>
The container that can be used with this type: ZeroVec
or VarZeroVec
.
type GetType = MetaZoneId
type GetType = MetaZoneId
The type produced by Container::get()
Read more
type OwnedType = MetaZoneId
type OwnedType = MetaZoneId
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 more
impl Copy for MetaZoneId
impl Eq for MetaZoneId
impl<'a> IsCovariant<'a> for MetaZoneId
impl StructuralEq for MetaZoneId
impl StructuralPartialEq for MetaZoneId
Auto Trait Implementations
impl RefUnwindSafe for MetaZoneId
impl Send for MetaZoneId
impl Sync for MetaZoneId
impl Unpin for MetaZoneId
impl UnwindSafe for MetaZoneId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more