Enum neko::graphic::Emotion
[−]
#[repr(u32)]pub enum Emotion { None, Angry, Happy, Love, Malicious, Misunderstanding, Shocked, Sleepy, Speechless, }
Variants
NoneSymbol '_'.
AngrySymbol 'a'.
HappySymbol 'h'.
LoveSymbol 'l'.
MaliciousSymbol 'm'.
MisunderstandingSymbol 'i'.
ShockedSymbol 'o'.
SleepySymbol 's'.
SpeechlessSymbol 'e'.
Methods
impl Emotion
fn new(content: &str) -> Result<Emotion, EmotionError>
fn is_none(&self) -> bool
The accessor method is_none returns a boolean
for None, axiom of emotion.
fn not_empty(&self) -> Option<&Emotion>
Trait Implementations
impl Copy for Emotion
impl Debug for Emotion
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Eq for Emotion
impl PartialEq<Emotion> for Emotion
fn eq(&self, __arg_0: &Emotion) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Default for Emotion
impl Clone for Emotion
fn clone(&self) -> Emotion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Hash for Emotion
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more