Enum insult::Word [−][src]
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]
impl Word
pub fn is_noun(&self) -> bool
[src]
pub fn is_noun(&self) -> bool
pub fn is_ending(&self) -> bool
[src]
pub fn is_ending(&self) -> bool
pub fn is_verb(&self) -> bool
[src]
pub fn is_verb(&self) -> bool
pub fn is_and(&self) -> bool
[src]
pub fn is_and(&self) -> bool
pub fn is_unfinished(&self) -> bool
[src]
pub fn is_unfinished(&self) -> bool
Trait Implementations
impl Debug for Word
[src]
impl Debug for Word
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Word
[src]
impl Clone for Word
fn clone(&self) -> Word
[src]
fn clone(&self) -> Word
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Word
[src]
impl PartialEq for Word
fn eq(&self, other: &Word) -> bool
[src]
fn eq(&self, other: &Word) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Word) -> bool
[src]
fn ne(&self, other: &Word) -> bool
This method tests for !=
.
impl Eq for Word
[src]
impl Eq for Word