Expand description
This module holds the Collator struct whose compare_impl() contains
the comparison of collation element sequences.
Macrosยง
- collation_
elements ๐ - compare ๐
- hangul_
syllable_ ๐compare - negdivmod ๐
- quick_
primary_ ๐compare
Structsยง
- AnyQuaternary
Accumulator ๐ - Collator
- Compares strings according to culturally-relevant ordering.
- Collator
Borrowed - Compares strings according to culturally-relevant ordering, borrowed version.
- Collator
Preferences - The preferences for collation.
- Locale
Specific ๐Data Holder - Holder struct for payloads that are locale-dependent. (For code reuse between owned and borrowed cases.)
- Sort
KeyLevel ๐ - TooSmall
- Error indicating that a
CollationKeySinkwith limited space ran out of space.
Constantsยง
- CASE_
LEVEL_ ๐FLAG - CASE_
LOWER_ ๐FIRST_ COMMON - CASE_
UPPER_ ๐FIRST_ COMMON - COMMON_
BYTE ๐ - Default secondary/tertiary weight lead byte.
- COMMON_
WEIGH ๐T16 - LEVEL_
MASKS ๐ - LEVEL_
SEPARATOR_ ๐BYTE - MERGE_
SEPARATOR ๐ - Merge-sort-key separator.
- MERGE_
SEPARATOR_ ๐BYTE - MERGE_
SEPARATOR_ ๐PRIMARY - PRIMARY_
COMPRESSION_ ๐HIGH_ BYTE - Primary compression high terminator.
- PRIMARY_
COMPRESSION_ ๐LOW_ BYTE - Primary compression low terminator, must be greater than
MERGE_SEPARATOR_BYTE. - PRIMARY_
LEVEL_ ๐FLAG - QUATERNARY_
LEVEL_ ๐FLAG - QUAT_
COMMON ๐ - QUAT_
SHIFTED_ ๐LIMIT_ BYTE - SECONDARY_
LEVEL_ ๐FLAG - SEC_
COMMON ๐ - SLOPE_
LEAD_ ๐2 - SLOPE_
LEAD_ ๐3 - SLOPE_
MAX ๐ - SLOPE_
MIDDLE ๐ - SLOPE_
MIN ๐ - SLOPE_
REACH_ ๐NEG_ 1 - SLOPE_
REACH_ ๐NEG_ 2 - SLOPE_
REACH_ ๐NEG_ 3 - SLOPE_
REACH_ ๐POS_ 1 - SLOPE_
REACH_ ๐POS_ 2 - SLOPE_
REACH_ ๐POS_ 3 - SLOPE_
SINGLE ๐ - SLOPE_
START_ ๐NEG_ 2 - SLOPE_
START_ ๐NEG_ 3 - SLOPE_
START_ ๐POS_ 2 - SLOPE_
START_ ๐POS_ 3 - SLOPE_
TAIL_ ๐COUNT - TERTIARY_
LEVEL_ ๐FLAG - TER_
LOWER_ ๐FIRST_ COMMON - TER_
ONLY_ ๐COMMON - TER_
UPPER_ ๐FIRST_ COMMON - WEIGHT_
HIGH ๐ - WEIGHT_
LOW ๐ - WEIGHT_
MAX_ ๐COUNT - WEIGHT_
MIDDLE ๐
Traitsยง
- Collation
KeySink - A
std::io::Write-like trait for writing to a buffer-like object.
Functionsยง
- in_
inclusive_ ๐range16 trueiffiis greater or equal tostartand less or equal toend.- split_
prefix ๐ - Finds the identical prefix of
leftandrightcontaining guaranteed well-format UTF-8. - split_
prefix_ ๐latin1 - Finds the identical prefix of
leftandrightcontaining Latin1. - split_
prefix_ ๐latin1_ utf16 - Finds the identical prefix of
leftcontaining Latin1 andrightcontaining potentially ill-formed UTF-16. - split_
prefix_ ๐u8 - Finds the identical prefix of
leftandrightcontaining potentially ill-formed UTF-8, while avoiding splitting a UTF-8 byte sequence. In case of ill-formed UTF-8, the prefix is not guaranteed to be maximal. - split_
prefix_ ๐u16 - Finds the identical prefix of
leftandrightcontaining potentially ill-formed UTF-16, while avoiding splitting a well-formed surrogate pair. In case of ill-formed UTF-16, the prefix is not guaranteed to be maximal. - write_
diff ๐ - write_
identical_ ๐level
Type Aliasesยง
- Norm
Trie ๐