Struct icu::datetime::provider::time_zones::MetazoneId
source · [−]#[repr(transparent)]pub struct MetazoneId(pub TinyAsciiStr<4_usize>);
Expand description
Metazone ID in a compact format
Tuple Fields
0: TinyAsciiStr<4_usize>
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) -> <MetazoneId as AsULE>::ULE
fn to_unaligned(self) -> <MetazoneId as AsULE>::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(unaligned: <MetazoneId as AsULE>::ULE) -> MetazoneId
fn from_unaligned(unaligned: <MetazoneId as AsULE>::ULE) -> MetazoneId
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<MetazoneId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MetazoneId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<TinyAsciiStr<4_usize>> for MetazoneId
impl From<TinyAsciiStr<4_usize>> for MetazoneId
sourcefn from(s: TinyAsciiStr<4_usize>) -> MetazoneId
fn from(s: TinyAsciiStr<4_usize>) -> MetazoneId
Converts to this type from the input type.
sourceimpl FromStr for MetazoneId
impl FromStr for MetazoneId
type Err = TinyStrError
type Err = TinyStrError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<MetazoneId, <MetazoneId as FromStr>::Err>
fn from_str(s: &str) -> Result<MetazoneId, <MetazoneId as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
sourceimpl Hash for MetazoneId
impl Hash for MetazoneId
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
sourcefn 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
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 &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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) -> &<MetazoneId as Yokeable<'a>>::Output
fn transform(&self) -> &<MetazoneId as Yokeable<'a>>::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> <MetazoneId as Yokeable<'a>>::Output
fn transform_owned(self) -> <MetazoneId as Yokeable<'a>>::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe fn make(this: <MetazoneId as Yokeable<'a>>::Output) -> MetazoneId
unsafe fn make(this: <MetazoneId as Yokeable<'a>>::Output) -> MetazoneId
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 <MetazoneId as Yokeable<'a>>::Output),
fn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut <MetazoneId as Yokeable<'a>>::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 Slice = ZeroSlice<MetazoneId>
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