pub enum Locale {
ArabicScript,
Root,
}
Expand description
This enum provides for a choice of which locale to use with the CLDR table of character
weights. The default, Root
, represents the CLDR root collation order. At the moment, there
is only one other choice: ArabicScript
. But the list should grow over time.
Variants
ArabicScript
This locale defines a tailoring in which the Arabic script sorts before the Latin script. No more granular adjustments have been made.
Root
The CLDR root collation order
Trait Implementations
sourceimpl Ord for Locale
impl Ord for Locale
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Locale> for Locale
impl PartialEq<Locale> for Locale
sourceimpl PartialOrd<Locale> for Locale
impl PartialOrd<Locale> for Locale
sourcefn partial_cmp(&self, other: &Locale) -> Option<Ordering>
fn partial_cmp(&self, other: &Locale) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Locale
impl Eq for Locale
impl StructuralEq for Locale
impl StructuralPartialEq for Locale
Auto Trait Implementations
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnwindSafe for Locale
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more