Enum mongodb::options::CollationStrength [−][src]
#[non_exhaustive]
pub enum CollationStrength {
Primary,
Secondary,
Tertiary,
Quaternary,
Identical,
}
Expand description
The level of comparison to perform. Corresponds to ICU Comparison Levels.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Typically, this is used to denote differences between base characters (for example, “a” < “b”).
This is also called the level-1 strength.
Accents in the characters are considered secondary differences (for example, “as” < “às” < “at”).
This is also called the level-2 strength.
Upper and lower case differences in characters are distinguished at the tertiary level (for example, “ao” < “Ao” < “aò”).
This is also called the level-3 strength.
When punctuation is ignored at level 1-3, an additional level can be used to distinguish words with and without punctuation (for example, “ab” < “a-b” < “aB”).
This is also called the level-4 strength.
When all other levels are equal, the identical level is used as a tiebreaker. The Unicode code point values of the NFD form of each string are compared at this level, just in case there is no difference at levels 1-4.
This is also called the level-5 strength.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CollationStrength
impl Send for CollationStrength
impl Sync for CollationStrength
impl Unpin for CollationStrength
impl UnwindSafe for CollationStrength
Blanket Implementations
Mutably borrows from an owned value. Read more