#[non_exhaustive]pub enum CollationNumericOrdering {
True,
False,
}
Expand description
Collation parameter key for numeric handling.
If set to on, any sequence of Decimal Digits (General_Category = Nd in the UAX44) is sorted at a primary level with its numeric value. For example, “1” < “2” < “10”. The computed primary weights are all at the start of the digit reordering group.
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.
True
A sequence of decimal digits is sorted at primary level with its numeric value
False
No special handling for numeric ordering
Implementations§
Trait Implementations§
source§impl Clone for CollationNumericOrdering
impl Clone for CollationNumericOrdering
source§fn clone(&self) -> CollationNumericOrdering
fn clone(&self) -> CollationNumericOrdering
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 moresource§impl Debug for CollationNumericOrdering
impl Debug for CollationNumericOrdering
source§impl Default for CollationNumericOrdering
impl Default for CollationNumericOrdering
source§fn default() -> CollationNumericOrdering
fn default() -> CollationNumericOrdering
Returns the “default value” for a type. Read more
source§impl From<CollationNumericOrdering> for Value
impl From<CollationNumericOrdering> for Value
source§fn from(input: CollationNumericOrdering) -> Value
fn from(input: CollationNumericOrdering) -> Value
Converts to this type from the input type.
source§impl Hash for CollationNumericOrdering
impl Hash for CollationNumericOrdering
source§impl PartialEq for CollationNumericOrdering
impl PartialEq for CollationNumericOrdering
source§impl PreferenceKey for CollationNumericOrdering
impl PreferenceKey for CollationNumericOrdering
source§fn unicode_extension_key() -> Option<Key>
fn unicode_extension_key() -> Option<Key>
Retrieve unicode extension key corresponding to a given preference.
source§fn try_from_key_value(
key: &Key,
value: &Value,
) -> Result<Option<Self>, PreferencesParseError>
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<Self>, 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.
source§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.
source§impl TryFrom<&Value> for CollationNumericOrdering
impl TryFrom<&Value> for CollationNumericOrdering
impl Copy for CollationNumericOrdering
impl Eq for CollationNumericOrdering
impl StructuralPartialEq for CollationNumericOrdering
Auto Trait Implementations§
impl Freeze for CollationNumericOrdering
impl RefUnwindSafe for CollationNumericOrdering
impl Send for CollationNumericOrdering
impl Sync for CollationNumericOrdering
impl Unpin for CollationNumericOrdering
impl UnwindSafe for CollationNumericOrdering
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