Struct insult::Generator [−][src]
pub struct Generator<R: Rng> { /* fields omitted */ }
Methods
impl<R: Rng> Generator<R>
[src]
impl<R: Rng> Generator<R>
pub fn new(words: Vec<Word>, rand: R) -> Self
[src]
pub fn new(words: Vec<Word>, rand: R) -> Self
pub fn sample(&mut self, words: &mut Vec<usize>) -> Word
[src]
pub fn sample(&mut self, words: &mut Vec<usize>) -> Word
pub fn has_noun(&mut self) -> bool
[src]
pub fn has_noun(&mut self) -> bool
pub fn has_ending(&mut self) -> bool
[src]
pub fn has_ending(&mut self) -> bool
pub fn has_verb(&mut self) -> bool
[src]
pub fn has_verb(&mut self) -> bool
pub fn has_and(&mut self) -> bool
[src]
pub fn has_and(&mut self) -> bool
pub fn expect_noun(&mut self, he_she_it_override: Option<bool>)
[src]
pub fn expect_noun(&mut self, he_she_it_override: Option<bool>)
pub fn expect_ending(&mut self)
[src]
pub fn expect_ending(&mut self)
pub fn expect_verb(&mut self)
[src]
pub fn expect_verb(&mut self)
pub fn expect_and(&mut self)
[src]
pub fn expect_and(&mut self)