[][src]Module lexical_sort::iter

Iterators to transliterate Unicode to ASCII. Note that only alphanumeric characters are transliterated, and not all of them are supported.

Characters can be transliterated to multiple ASCII characters. For example, æ is converted to ae, and ½ is converted to 1/2.

The iterators don't allocate memory on the heap. I haven't benchmarked it, but I believe that it's quite efficient.

Structs

LexicalChar

An iterator over one char, converted to lowercase and transliterated to ASCII, if it is an alphanumeric character

Functions

iterate_lexical

Returns an iterator over the characters of a string, converted to lowercase and transliterated to ASCII, if they're alphanumeric

iterate_lexical_char

Returns an iterator over one char, converted to lowercase and transliterated to ASCII, if it is alphanumeric

iterate_lexical_char_only_alnum

Returns an iterator over one char, converted to lowercase and transliterated to ASCII, if it is alphanumeric

iterate_lexical_only_alnum

Returns an iterator over the characters of a string, converted to lowercase and transliterated to ASCII. Non-alphanumeric characters are skipped