Crate random_word
source ·Expand description
random_word
The random_word crate provides an efficient way to generate random
english words.
All words a compiled with the library pre-sorted, optimized for fast, zero allocation lookup.
Generating a random word
let word = random_word::gen();Enums
Represents all possible errors.
Functions
Returns a reference to a randomly generated english word.
Returns an alphabetical ordered array of 178,187 english words.
Returns an alphabetically ordered slice of all words
with the specified length.
Returns an alphabetically ordered slice of all words
that begin with the specified character.
Returns a reference to a word with the specified length.
Returns a reference to a word that begins with the
specified character.