Function all_len

Source
pub fn all_len(len: usize, lang: Lang) -> Option<&'static [&'static str]>
Expand description

Returns all words with the given length and language.

ยงExample

use random_word::Lang;
let words = random_word::all_len(4, Lang::En);
assert!(words.is_some());