#[non_exhaustive]pub enum CollationType {
Show 15 variants
    Compat,
    Dict,
    Ducet,
    Emoji,
    Eor,
    Phonebk,
    Phonetic,
    Pinyin,
    Search,
    Searchjl,
    Standard,
    Stroke,
    Trad,
    Unihan,
    Zhuyin,
}Expand description
A Unicode Collation Identifier defines a type of collation (sort order).
The valid values are listed in LDML.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Compat
A previous version of the ordering, for compatibility
Dict
Dictionary style ordering (such as in Sinhala)
Ducet
The default Unicode collation element table order
Emoji
Recommended ordering for emoji characters
Eor
European ordering rules
Phonebk
Phonebook style ordering (such as in German)
Phonetic
Phonetic ordering (sorting based on pronunciation)
Pinyin
Pinyin ordering for Latin and for CJK characters (used in Chinese)
Search
Special collation type for string search
Searchjl
Special collation type for Korean initial consonant search
Standard
Default ordering for each language
Stroke
Pinyin ordering for Latin, stroke order for CJK characters (used in Chinese)
Trad
Traditional style ordering (such as in Spanish)
Unihan
Pinyin ordering for Latin, Unihan radical-stroke ordering for CJK characters (used in Chinese)
Zhuyin
Pinyin ordering for Latin, zhuyin order for Bopomofo and CJK characters (used in Chinese)
Implementations§
Trait Implementations§
Source§impl Clone for CollationType
 
impl Clone for CollationType
Source§fn clone(&self) -> CollationType
 
fn clone(&self) -> CollationType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CollationType
 
impl Debug for CollationType
Source§impl From<CollationType> for Value
 
impl From<CollationType> for Value
Source§fn from(input: CollationType) -> Value
 
fn from(input: CollationType) -> Value
Source§impl Hash for CollationType
 
impl Hash for CollationType
Source§impl PartialEq for CollationType
 
impl PartialEq for CollationType
Source§impl PreferenceKey for CollationType
 
impl PreferenceKey for CollationType
Source§fn unicode_extension_key() -> Option<Key>
 
fn unicode_extension_key() -> Option<Key>
Source§fn try_from_key_value(
    key: &Key,
    value: &Value,
) -> Result<Option<CollationType>, PreferencesParseError>
 
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<CollationType>, PreferencesParseError>
Source§fn unicode_extension_value(&self) -> Option<Value>
 
fn unicode_extension_value(&self) -> Option<Value>
Source§impl TryFrom<&Value> for CollationType
 
impl TryFrom<&Value> for CollationType
Source§type Error = PreferencesParseError
 
type Error = PreferencesParseError
Source§fn try_from(
    s: &Value,
) -> Result<CollationType, <CollationType as TryFrom<&Value>>::Error>
 
fn try_from( s: &Value, ) -> Result<CollationType, <CollationType as TryFrom<&Value>>::Error>
impl Copy for CollationType
impl Eq for CollationType
impl StructuralPartialEq for CollationType
Auto Trait Implementations§
impl Freeze for CollationType
impl RefUnwindSafe for CollationType
impl Send for CollationType
impl Sync for CollationType
impl Unpin for CollationType
impl UnwindSafe for CollationType
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,
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>
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>
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