Struct ranagrams::util::Translator[][src]

pub struct Translator {
    pub normalizer: fn(_: &str) -> String,
    // some fields omitted
}

A Translator converts between alphabetic and numeric representations of words. For anagram calculation words are treated as pure numeric sequences. The translator converts back and forth and also keeps track of character frequences in order to produce a dense trie representation of a word list.

Fields

Methods

impl Translator
[src]

for construction of an error message when translate fails

Auto Trait Implementations

impl Send for Translator

impl Sync for Translator