#[non_exhaustive]pub enum LocaleFallbackPriority {
    Language,
    Script,
    Region,
}Expand description
Hint for which subtag to prioritize during fallback.
For example, "en-US" might fall back to either "en" or "und-US" depending
on this enum.
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.
Language
Prioritize the language. This is the default behavior.
For example, "en-US" should go to "en" and then "und".
Script
Prioritize the script.
For example, "en-US" should go to "en" and then "und-Latn" and then "und".
Region
Prioritize the region.
For example, "en-US" should go to "und-US" and then "und".
Implementations§
Source§impl LocaleFallbackPriority
 
impl LocaleFallbackPriority
Sourcepub const fn default() -> LocaleFallbackPriority
 
pub const fn default() -> LocaleFallbackPriority
Const-friendly version of Default::default.
Trait Implementations§
Source§impl Clone for LocaleFallbackPriority
 
impl Clone for LocaleFallbackPriority
Source§fn clone(&self) -> LocaleFallbackPriority
 
fn clone(&self) -> LocaleFallbackPriority
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 Debug for LocaleFallbackPriority
 
impl Debug for LocaleFallbackPriority
Source§impl Default for LocaleFallbackPriority
 
impl Default for LocaleFallbackPriority
Source§fn default() -> LocaleFallbackPriority
 
fn default() -> LocaleFallbackPriority
Returns the “default value” for a type. Read more
Source§impl Ord for LocaleFallbackPriority
 
impl Ord for LocaleFallbackPriority
Source§fn cmp(&self, other: &LocaleFallbackPriority) -> Ordering
 
fn cmp(&self, other: &LocaleFallbackPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LocaleFallbackPriority
 
impl PartialEq for LocaleFallbackPriority
Source§impl PartialOrd for LocaleFallbackPriority
 
impl PartialOrd for LocaleFallbackPriority
impl Copy for LocaleFallbackPriority
impl Eq for LocaleFallbackPriority
impl StructuralPartialEq for LocaleFallbackPriority
Auto Trait Implementations§
impl Freeze for LocaleFallbackPriority
impl RefUnwindSafe for LocaleFallbackPriority
impl Send for LocaleFallbackPriority
impl Sync for LocaleFallbackPriority
impl Unpin for LocaleFallbackPriority
impl UnwindSafe for LocaleFallbackPriority
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