Enum CollationType
#[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
This is a reexport of a type in icu::locale
.
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§
§impl CollationType
impl CollationType
Trait Implementations§
§impl Clone for CollationType
impl Clone for CollationType
§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 more§impl Debug for CollationType
impl Debug for CollationType
§impl Hash for CollationType
impl Hash for CollationType
§impl PartialEq for CollationType
impl PartialEq for CollationType
§impl PreferenceKey for CollationType
impl PreferenceKey for CollationType
§fn unicode_extension_key() -> Option<Key>
fn unicode_extension_key() -> Option<Key>
§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>
§fn unicode_extension_value(&self) -> Option<Value>
fn unicode_extension_value(&self) -> Option<Value>
§impl TryFrom<&Value> for CollationType
impl TryFrom<&Value> for CollationType
§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