Enum icu_collator::Numeric
source · #[non_exhaustive]#[repr(u8)]pub enum Numeric {
Off = 0,
On = 1,
}
Expand description
When set to On
, any sequence of decimal digits is sorted at a primary level according to the numeric value.
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.
Off = 0
Leave off the numeric option. Decimal digits will be treated as characters by the default algorithm.
On = 1
Turn on numeric sorting for any sequence of decimal digits, sorting at a primary level according to the numeric value.
Trait Implementations§
source§impl PartialEq for Numeric
impl PartialEq for Numeric
impl Copy for Numeric
impl Eq for Numeric
impl StructuralPartialEq for Numeric
Auto Trait Implementations§
impl Freeze for Numeric
impl RefUnwindSafe for Numeric
impl Send for Numeric
impl Sync for Numeric
impl Unpin for Numeric
impl UnwindSafe for Numeric
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