Function get

Source
pub fn get(lang: Lang) -> &'static str
Expand description

Returns a random word with the given language.

ยงExample

use random_word::Lang;
let word = random_word::get(Lang::En);
assert!(!word.is_empty());