Skip to main content

Module comparison

Module comparison 

Source
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ยง

AnyQuaternaryAccumulator ๐Ÿ”’
Collator
Compares strings according to culturally-relevant ordering.
CollatorBorrowed
Compares strings according to culturally-relevant ordering, borrowed version.
CollatorPreferences
The preferences for collation.
LocaleSpecificDataHolder ๐Ÿ”’
Holder struct for payloads that are locale-dependent. (For code reuse between owned and borrowed cases.)
SortKeyLevel ๐Ÿ”’
TooSmall
Error indicating that a CollationKeySink with 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_WEIGHT16 ๐Ÿ”’
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ยง

CollationKeySink
A std::io::Write-like trait for writing to a buffer-like object.

Functionsยง

in_inclusive_range16 ๐Ÿ”’
true iff i is greater or equal to start and less or equal to end.
split_prefix ๐Ÿ”’
Finds the identical prefix of left and right containing guaranteed well-format UTF-8.
split_prefix_latin1 ๐Ÿ”’
Finds the identical prefix of left and right containing Latin1.
split_prefix_latin1_utf16 ๐Ÿ”’
Finds the identical prefix of left containing Latin1 and right containing potentially ill-formed UTF-16.
split_prefix_u8 ๐Ÿ”’
Finds the identical prefix of left and right containing 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 left and right containing 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ยง

NormTrie ๐Ÿ”’