pub struct IanaToBcp47Map<'data> {
    pub map: ZeroAsciiIgnoreCaseTrie<ZeroVec<'data, u8>>,
    pub bcp47_ids: ZeroVec<'data, TimeZone>,
}Expand description
A mapping from normal-case IANA time zone identifiers to BCP-47 time zone identifiers.
Multiple IANA time zone IDs can map to the same BCP-47 time zone ID.
๐ง 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ยง
ยงmap: ZeroAsciiIgnoreCaseTrie<ZeroVec<'data, u8>>A map from normal-case IANA time zone identifiers to indexes of BCP-47 time zone identifiers along with a canonical flag. The IANA identifiers are normal-case.
The usize values stored in the trie have the following form:
- Lowest bit: 1 if canonical, 0 if not canonical
 - All remaining bits: index into 
bcp47_ids 
For example, in CLDR 44, "Africa/Abidjan" has value 221, which means it is canonical
(low bit is 1 == odd number) and the index into bcp47_ids is 110 (221 >> 1).
bcp47_ids: ZeroVec<'data, TimeZone>A list of BCP-47 time zone identifiers, sorted by canonical IANA ID.
Trait Implementationsยง
Sourceยงimpl<'data> Clone for IanaToBcp47Map<'data>
 
impl<'data> Clone for IanaToBcp47Map<'data>
Sourceยงfn clone(&self) -> IanaToBcp47Map<'data>
 
fn clone(&self) -> IanaToBcp47Map<'data>
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<'data> Debug for IanaToBcp47Map<'data>
 
impl<'data> Debug for IanaToBcp47Map<'data>
Sourceยงimpl<'de, 'data> Deserialize<'de> for IanaToBcp47Map<'data>where
    'de: 'data,
 
impl<'de, 'data> Deserialize<'de> for IanaToBcp47Map<'data>where
    'de: 'data,
Sourceยงfn deserialize<__D>(
    __deserializer: __D,
) -> Result<IanaToBcp47Map<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<IanaToBcp47Map<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MaybeAsVarULE for IanaToBcp47Map<'_>
 
impl MaybeAsVarULE for IanaToBcp47Map<'_>
Sourceยงimpl<'data> PartialEq for IanaToBcp47Map<'data>
 
impl<'data> PartialEq for IanaToBcp47Map<'data>
Sourceยงimpl<'a> Yokeable<'a> for IanaToBcp47Map<'static>
 
impl<'a> Yokeable<'a> for IanaToBcp47Map<'static>
Sourceยงtype Output = IanaToBcp47Map<'a>
 
type Output = IanaToBcp47Map<'a>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> <IanaToBcp47Map<'static> as Yokeable<'a>>::Output
 
fn transform_owned(self) -> <IanaToBcp47Map<'static> as Yokeable<'a>>::Output
Sourceยงunsafe fn make(
    this: <IanaToBcp47Map<'static> as Yokeable<'a>>::Output,
) -> IanaToBcp47Map<'static>
 
unsafe fn make( this: <IanaToBcp47Map<'static> as Yokeable<'a>>::Output, ) -> IanaToBcp47Map<'static>
This method can be used to cast away 
Self<'a>โs lifetime. Read moreSourceยงfn transform_mut<F>(&'a mut self, f: F)
 
fn transform_mut<F>(&'a mut self, f: F)
This method must cast 
self between &'a mut Self<'static> and &'a mut Self<'a>,
and pass it to f. Read moreSourceยงimpl<'zf, 'zf_inner> ZeroFrom<'zf, IanaToBcp47Map<'zf_inner>> for IanaToBcp47Map<'zf>
 
impl<'zf, 'zf_inner> ZeroFrom<'zf, IanaToBcp47Map<'zf_inner>> for IanaToBcp47Map<'zf>
Sourceยงfn zero_from(this: &'zf IanaToBcp47Map<'zf_inner>) -> IanaToBcp47Map<'zf>
 
fn zero_from(this: &'zf IanaToBcp47Map<'zf_inner>) -> IanaToBcp47Map<'zf>
Clone the other 
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for IanaToBcp47Map<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for IanaToBcp47Map<'data>
impl<'data> RefUnwindSafe for IanaToBcp47Map<'data>
impl<'data> Send for IanaToBcp47Map<'data>
impl<'data> Sync for IanaToBcp47Map<'data>
impl<'data> Unpin for IanaToBcp47Map<'data>
impl<'data> UnwindSafe for IanaToBcp47Map<'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