Skip to main content

suffix_seed_reversed

Function suffix_seed_reversed 

Source
pub fn suffix_seed_reversed(lexical: &str, seed_chars: usize) -> Option<String>
Expand description

The last seed_chars characters of lexical, reversed.

Reversing turns “ends with X” into “starts with reverse(X)”, which the term dictionary can seek. chars().rev() reverses characters, so the result is valid UTF-8.