Struct icu_datetime::provider::time_zones::MetazoneId
#[repr(transparent)]pub struct MetazoneId(pub TinyAsciiStr<4>);
Expand description
Metazone ID in a compact format
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Tuple Fieldsยง
ยง0: TinyAsciiStr<4>
Trait Implementationsยง
ยงimpl AsULE for MetazoneId
impl AsULE for MetazoneId
ยงtype ULE = MetazoneId
type ULE = MetazoneId
The ULE type corresponding to
Self
. Read moreยงfn to_unaligned(self) -> <MetazoneId as AsULE>::ULE
fn to_unaligned(self) -> <MetazoneId as AsULE>::ULE
ยงfn from_unaligned(unaligned: <MetazoneId as AsULE>::ULE) -> MetazoneId
fn from_unaligned(unaligned: <MetazoneId as AsULE>::ULE) -> MetazoneId
ยงimpl Bake for MetazoneId
impl Bake for MetazoneId
ยงfn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
ยงimpl BakeSize for MetazoneId
impl BakeSize for MetazoneId
ยงfn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
ยงimpl Clone for MetazoneId
impl Clone for MetazoneId
ยงfn clone(&self) -> MetazoneId
fn clone(&self) -> MetazoneId
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 moreยงimpl Debug for MetazoneId
impl Debug for MetazoneId
ยงimpl<'de> Deserialize<'de> for MetazoneId
impl<'de> Deserialize<'de> for MetazoneId
ยงfn 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
ยงimpl Hash for MetazoneId
impl Hash for MetazoneId
ยงimpl Ord for MetazoneId
impl Ord for MetazoneId
ยงimpl PartialEq for MetazoneId
impl PartialEq for MetazoneId
ยงfn 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 ==
.ยงimpl PartialOrd for MetazoneId
impl PartialOrd for MetazoneId
ยงfn partial_cmp(&self, other: &MetazoneId) -> Option<Ordering>
fn partial_cmp(&self, other: &MetazoneId) -> 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 moreยงimpl Serialize for MetazoneId
impl Serialize for MetazoneId
ยงfn 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
ยงimpl ULE for MetazoneId
impl ULE for MetazoneId
ยง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ยงimpl<'a> Yokeable<'a> for MetazoneIdwhere
MetazoneId: Sized,
impl<'a> Yokeable<'a> for MetazoneIdwhere
MetazoneId: Sized,
ยงtype Output = MetazoneId
type Output = MetazoneId
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
ยงfn transform(&self) -> &<MetazoneId as Yokeable<'a>>::Output
fn transform(&self) -> &<MetazoneId as Yokeable<'a>>::Output
ยงfn transform_owned(self) -> <MetazoneId as Yokeable<'a>>::Output
fn transform_owned(self) -> <MetazoneId as Yokeable<'a>>::Output
ยงunsafe 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ยงfn 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ยงimpl<'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 moreimpl Copy for MetazoneId
impl Eq for MetazoneId
impl StructuralPartialEq for MetazoneId
Auto Trait Implementationsยง
impl Freeze for MetazoneId
impl RefUnwindSafe for MetazoneId
impl Send for MetazoneId
impl Sync for MetazoneId
impl Unpin for MetazoneId
impl UnwindSafe for MetazoneId
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> 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