pub struct IanaNames<'data> {
pub normalized_iana_ids: VarZeroVec<'data, str>,
}Expand description
A mapping from IANA time zone identifiers to BCP-47 time zone identifiers.
The BCP-47 time zone ID maps to the default IANA time zone ID according to the CLDR data.
๐ง 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.
Fieldsยง
ยงnormalized_iana_ids: VarZeroVec<'data, str>The list of all normalized IANA identifiers.
The first bcp47_ids.len() identifiers are canonical for the
the BCP-47 IDs in IanaToBcp47Map::bcp47_ids at the same index.
The remaining non-canonical identifiers are sorted in ascending lowercase order.
Trait Implementationsยง
Sourceยงimpl<'de: 'data, 'data> Deserialize<'de> for IanaNames<'data>
impl<'de: 'data, 'data> Deserialize<'de> for IanaNames<'data>
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 MaybeAsVarULE for IanaNames<'_>
impl MaybeAsVarULE for IanaNames<'_>
Sourceยงimpl<'a> Yokeable<'a> for IanaNames<'static>
impl<'a> Yokeable<'a> for IanaNames<'static>
Sourceยงtype Output = IanaNames<'a>
type Output = IanaNames<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
impl<'data> StructuralPartialEq for IanaNames<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for IanaNames<'data>
impl<'data> RefUnwindSafe for IanaNames<'data>
impl<'data> Send for IanaNames<'data>
impl<'data> Sync for IanaNames<'data>
impl<'data> Unpin for IanaNames<'data>
impl<'data> UnwindSafe for IanaNames<'data>
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ยง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