Enum insult::Word
[−]
[src]
pub enum Word { Noun(bool, String), Ending(String), Verb(Verb), And, Unfinished, }
Not really a word, more like a substring that makes up a sentence.
Variants
Noun(bool, String)
Someone/something, like "your math teacher"
Ending(String)
An ending, like ", and you know it's true!"
Verb(Verb)
Something they do, like "farted on"
And
"and"
Unfinished
When the generator runs out of words, creates "... eh... uhnn..."
Methods
impl Word
[src]
pub fn is_noun(&self) -> bool
[src]
pub fn is_ending(&self) -> bool
[src]
pub fn is_verb(&self) -> bool
[src]
pub fn is_and(&self) -> bool
[src]
pub fn is_unfinished(&self) -> bool
[src]
Trait Implementations
impl Debug for Word
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Word
[src]
fn clone(&self) -> Word
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Word
[src]
fn eq(&self, __arg_0: &Word) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Word) -> bool
[src]
This method tests for !=
.