Crate natlex_sort

Source

Structs§

NatLexOrderedString
An owning string wrapper that provides natural-lexicographic ordering (nat_lex_cmp).

Functions§

nat_lex_byte_cmp
A hybrid comparator for byte slices:
nat_lex_byte_cmp_ignore
Case-insensitive version of nat_lex_byte_cmp.
nat_lex_cmp
A hybrid comparator for string slices:
nat_lex_cmp_ignore
Case-insensitive version of nat_lex_cmp.
nat_lex_sort
Sorts a mutable slice of items implementing AsRef<str> in natural-lexicographic order. Uses nat_lex_cmp.
nat_lex_sort_bytes
Sorts a mutable slice of byte slices (&[u8]) in natural-lexicographic order. Uses nat_lex_byte_cmp. See its documentation for details on the comparison logic.
nat_lex_sort_bytes_ignore_case
Sorts a mutable slice of byte slices (&[u8]) in natural-lexicographic order, ignoring ASCII case. Uses nat_lex_byte_cmp_ignore. See its documentation for details on the comparison logic.
nat_lex_sort_ignore_case
Sorts a mutable slice of items implementing AsRef<str> in natural-lexicographic order, ignoring ASCII case. Uses nat_lex_cmp_ignore.