pub trait Wordlist {
    const WORDLIST: &'static str;

    fn get(index: usize) -> Result<String, WordlistError> { ... }
    fn get_index(word: &str) -> Result<usize, WordlistError> { ... }
    fn get_all() -> Vec<&'static str> { ... }
}

Required Associated Constants

The wordlist in original form.

Provided Methods

Returns the word of a given index from the word list.

Returns the index of a given word from the word list.

Returns the word list as a string.

Implementors