#[non_exhaustive]pub enum LocaleTag {
Global,
DeDe,
DeAt,
DeCh,
EnUs,
EnGb,
EnIe,
EnAu,
EnCa,
Other(String),
}Expand description
Locale tag recognized by policy and recognizers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Global
Locale-independent recognizer or policy.
DeDe
German as used in Germany.
DeAt
German as used in Austria.
DeCh
German as used in Switzerland.
EnUs
English as used in the United States.
EnGb
English as used in Great Britain.
EnIe
English as used in Ireland.
EnAu
English as used in Australia.
EnCa
English as used in Canada.
Other(String)
Any other canonical BCP-47-like tag.
Implementations§
Trait Implementations§
impl Eq for LocaleTag
impl StructuralPartialEq for LocaleTag
Auto Trait Implementations§
impl Freeze for LocaleTag
impl RefUnwindSafe for LocaleTag
impl Send for LocaleTag
impl Sync for LocaleTag
impl Unpin for LocaleTag
impl UnsafeUnpin for LocaleTag
impl UnwindSafe for LocaleTag
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.