Struct insult::WordsFile [−][src]
pub struct WordsFile { pub nouns: Vec<(bool, String)>, pub endings: Vec<(bool, String)>, pub verbs: Vec<(bool, String)>, }
Fields
nouns: Vec<(bool, String)>
endings: Vec<(bool, String)>
verbs: Vec<(bool, String)>
Methods
impl WordsFile
[src]
impl WordsFile
pub fn gen_noun<R: Rng>(&self, rand: &mut R) -> Word
[src]
pub fn gen_noun<R: Rng>(&self, rand: &mut R) -> Word
pub fn gen_ending<R: Rng>(&self, rand: &mut R) -> Word
[src]
pub fn gen_ending<R: Rng>(&self, rand: &mut R) -> Word
pub fn gen_verb<R: Rng>(&self, rand: &mut R) -> Word
[src]
pub fn gen_verb<R: Rng>(&self, rand: &mut R) -> Word
pub fn generate<R: Rng>(&self, rand: R) -> Generator<R>
[src]
pub fn generate<R: Rng>(&self, rand: R) -> Generator<R>