Enum ecma402_traits::collator::options::Sensitivity
source · pub enum Sensitivity {
Base,
Accent,
Case,
Variant,
}
Expand description
Set the sensitivity of the collation.
Which differences in the strings should lead to non-zero result values.
Variants§
Base
Only strings that differ in base letters compare as unequal. Examples: a ≠ b, a = á, a = A.
Accent
Only strings that differ in base letters or accents and other diacritic marks compare as unequal. Examples: a ≠ b, a ≠ á, a = A.
Case
Only strings that differ in base letters or case compare as unequal. Examples: a ≠ b, a = á, a ≠ A.
Variant
Strings that differ in base letters, accents and other diacritic marks, or case compare as unequal. Other differences may also be taken into consideration. Examples: a ≠ b, a ≠ á, a ≠ A.
Trait Implementations§
source§impl Clone for Sensitivity
impl Clone for Sensitivity
source§fn clone(&self) -> Sensitivity
fn clone(&self) -> Sensitivity
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 Sensitivity
impl Debug for Sensitivity
source§impl PartialEq for Sensitivity
impl PartialEq for Sensitivity
source§fn eq(&self, other: &Sensitivity) -> bool
fn eq(&self, other: &Sensitivity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Sensitivity
impl StructuralPartialEq for Sensitivity
Auto Trait Implementations§
impl RefUnwindSafe for Sensitivity
impl Send for Sensitivity
impl Sync for Sensitivity
impl Unpin for Sensitivity
impl UnwindSafe for Sensitivity
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