Enum plutchik::Emotion
[−]
[src]
pub enum Emotion { Ecstacy, Joy, Serenity, Love, Admiration, Trust, Acceptance, Submission, Terror, Fear, Apprehension, Awe, Amazement, Surprise, Distraction, Disapproval, Grief, Sadness, Pensiveness, Remorse, Loathing, Disgust, Boredom, Contempt, Rage, Anger, Annoyance, Aggressiveness, Vigilance, Anticipation, Interest, Optimism, }
Each of the emotions portrayed on Plutchik's emotion wheel.
Variants
Ecstacy
Joy
Serenity
Love
Admiration
Trust
Acceptance
Submission
Terror
Fear
Apprehension
Awe
Amazement
Surprise
Distraction
Disapproval
Grief
Sadness
Pensiveness
Remorse
Loathing
Disgust
Boredom
Contempt
Rage
Anger
Annoyance
Aggressiveness
Vigilance
Anticipation
Interest
Optimism
Methods from Deref<Target=Wheel>
fn difference(&self, other: &Wheel) -> f32
Compare two Wheels and return the result as a difference weight where 0 is the minimum distance and 1 is the maximum. Determine the difference as the magnitude of the vector that separates both points on the wheel.
fn closest_emotion(&self) -> Emotion
Return the closest matching Emotion
variant to the current state of the Wheel.
fn closest_emotions(&self, n: usize) -> Vec<Emotion>
Return the closest n
number of emotions to the current state of the wheel.
fn opposite(&self) -> Wheel
Return the wheel's opposite.
Trait Implementations
impl Hash for Emotion
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for Emotion
[src]
impl PartialEq for Emotion
[src]
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) -> bool
1.0.0
This method tests for !=
.
impl Debug for Emotion
[src]
impl Clone for Emotion
[src]
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 Copy for Emotion
[src]
impl Deref for Emotion
[src]
type Target = Wheel
The resulting type after dereferencing
fn deref<'a>(&'a self) -> &'a Wheel
The method called to dereference a value