#[non_exhaustive]pub enum CollationCaseFirst {
Upper,
Lower,
False,
}
Expand description
Collation parameter key for ordering by case.
If set to upper, causes upper case to sort before lower case. If set to lower, causes lower case to sort before upper case. Useful for locales that have already supported ordering but require different order of cases. Affects case and tertiary levels.
The defails see LDML.
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.
Upper
Upper case to be sorted before lower case
Lower
Lower case to be sorted before upper case
False
No special case ordering
Implementations§
§impl CollationCaseFirst
impl CollationCaseFirst
Trait Implementations§
§impl Clone for CollationCaseFirst
impl Clone for CollationCaseFirst
§fn clone(&self) -> CollationCaseFirst
fn clone(&self) -> CollationCaseFirst
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 more§impl Debug for CollationCaseFirst
impl Debug for CollationCaseFirst
§impl Default for CollationCaseFirst
impl Default for CollationCaseFirst
§fn default() -> CollationCaseFirst
fn default() -> CollationCaseFirst
Returns the “default value” for a type. Read more
§impl From<CollationCaseFirst> for Value
impl From<CollationCaseFirst> for Value
§fn from(input: CollationCaseFirst) -> Value
fn from(input: CollationCaseFirst) -> Value
Converts to this type from the input type.
§impl Hash for CollationCaseFirst
impl Hash for CollationCaseFirst
§impl PartialEq for CollationCaseFirst
impl PartialEq for CollationCaseFirst
§impl PreferenceKey for CollationCaseFirst
impl PreferenceKey for CollationCaseFirst
§fn unicode_extension_key() -> Option<Key>
fn unicode_extension_key() -> Option<Key>
Retrieve unicode extension key corresponding to a given preference.
§fn try_from_key_value(
key: &Key,
value: &Value,
) -> Result<Option<CollationCaseFirst>, PreferencesParseError>
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<CollationCaseFirst>, PreferencesParseError>
Optional constructor of the given preference. It takes the
unicode extension key and if the key matches it attemptes to construct
the preference based on the given value.
If the value is not a valid value for the given key, the constructor throws.
§fn unicode_extension_value(&self) -> Option<Value>
fn unicode_extension_value(&self) -> Option<Value>
Retrieve unicode extension value corresponding to the given instance of the preference.
§impl TryFrom<&Value> for CollationCaseFirst
impl TryFrom<&Value> for CollationCaseFirst
§type Error = PreferencesParseError
type Error = PreferencesParseError
The type returned in the event of a conversion error.
§fn try_from(
s: &Value,
) -> Result<CollationCaseFirst, <CollationCaseFirst as TryFrom<&Value>>::Error>
fn try_from( s: &Value, ) -> Result<CollationCaseFirst, <CollationCaseFirst as TryFrom<&Value>>::Error>
Performs the conversion.
impl Copy for CollationCaseFirst
impl Eq for CollationCaseFirst
impl StructuralPartialEq for CollationCaseFirst
Auto Trait Implementations§
impl Freeze for CollationCaseFirst
impl RefUnwindSafe for CollationCaseFirst
impl Send for CollationCaseFirst
impl Sync for CollationCaseFirst
impl Unpin for CollationCaseFirst
impl UnwindSafe for CollationCaseFirst
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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