pub enum Locale {
ArabicScript,
ArabicInterleaved,
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 are only two
other choices: ArabicScript and ArabicInterleaved. 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.
ArabicInterleaved
This locale defines a tailoring in which Arabic-script characters are interleaved with Latin-script characters, so that alif sorts between A and B, bā’ between B and C, etc.
Root
The CLDR root collation order
Trait Implementations§
Source§impl Ord for Locale
impl Ord for Locale
Source§impl PartialOrd for Locale
impl PartialOrd for Locale
impl Copy for Locale
impl Eq for Locale
impl StructuralPartialEq for Locale
Auto Trait Implementations§
impl Freeze for Locale
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnwindSafe for Locale
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