pub struct LocaleFallbackLikelySubtagsV1<'data> {
pub l2s: ZeroMap<'data, UnvalidatedTinyAsciiStr<3>, Script>,
pub lr2s: ZeroMap2d<'data, UnvalidatedTinyAsciiStr<3>, UnvalidatedTinyAsciiStr<3>, Script>,
pub l2r: ZeroMap<'data, UnvalidatedTinyAsciiStr<3>, Region>,
pub ls2r: ZeroMap2d<'data, UnvalidatedTinyAsciiStr<3>, UnvalidatedTinyAsciiStr<4>, Region>,
}Expand description
Locale fallback rules derived from likely subtags data.
Fields§
§l2s: ZeroMap<'data, UnvalidatedTinyAsciiStr<3>, Script>Map from language to the default script in that language. Languages whose default script
is Latn are not included in the map for data size savings.
Example: “zh” defaults to “Hans”, which is in this map.
lr2s: ZeroMap2d<'data, UnvalidatedTinyAsciiStr<3>, UnvalidatedTinyAsciiStr<3>, Script>Map from language-region pairs to a script. Only populated if the script is different
from the one in l2s for that language.
Example: “zh-TW” defaults to “Hant”, which is in this map.
l2r: ZeroMap<'data, UnvalidatedTinyAsciiStr<3>, Region>Map from language to the default region in that language. Languages whose default region
is ZZ are not included in the map for data size savings.
Example: “zh” defaults to “CN”.
ls2r: ZeroMap2d<'data, UnvalidatedTinyAsciiStr<3>, UnvalidatedTinyAsciiStr<4>, Region>Map from language-script pairs to a region. Only populated if the region is different
from the one in l2r for that language.
Example: “zh-Hant” defaults to “TW”.
Trait Implementations§
Source§fn clone(&self) -> LocaleFallbackLikelySubtagsV1<'data>
fn clone(&self) -> LocaleFallbackLikelySubtagsV1<'data>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn default() -> LocaleFallbackLikelySubtagsV1<'data>
fn default() -> LocaleFallbackLikelySubtagsV1<'data>
Source§fn eq(&self, other: &LocaleFallbackLikelySubtagsV1<'data>) -> bool
fn eq(&self, other: &LocaleFallbackLikelySubtagsV1<'data>) -> bool
self and other values to be equal, and is used by ==.Source§type Output = LocaleFallbackLikelySubtagsV1<'a>
type Output = LocaleFallbackLikelySubtagsV1<'a>
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Source§fn zero_from(this: &'zf LocaleFallbackLikelySubtagsV1<'zf_inner>) -> Self
fn zero_from(this: &'zf LocaleFallbackLikelySubtagsV1<'zf_inner>) -> Self
C into a struct that may retain references into C.Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 288 bytes