Enum libhealth::model::WeightChange
source · pub enum WeightChange {
Up,
Down,
NoChange,
}
Expand description
A WeightChange expresses how the weight of the user has changed
Variants§
Trait Implementations§
source§impl AsRef<str> for WeightChange
impl AsRef<str> for WeightChange
source§impl Clone for WeightChange
impl Clone for WeightChange
source§fn clone(&self) -> WeightChange
fn clone(&self) -> WeightChange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WeightChange
impl Debug for WeightChange
source§impl Default for WeightChange
impl Default for WeightChange
source§impl FromStr for WeightChange
impl FromStr for WeightChange
source§impl Hash for WeightChange
impl Hash for WeightChange
source§impl Ord for WeightChange
impl Ord for WeightChange
source§fn cmp(&self, other: &WeightChange) -> Ordering
fn cmp(&self, other: &WeightChange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WeightChange> for WeightChange
impl PartialEq<WeightChange> for WeightChange
source§fn eq(&self, other: &WeightChange) -> bool
fn eq(&self, other: &WeightChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WeightChange> for WeightChange
impl PartialOrd<WeightChange> for WeightChange
source§fn partial_cmp(&self, other: &WeightChange) -> Option<Ordering>
fn partial_cmp(&self, other: &WeightChange) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToValue for WeightChange
impl ToValue for WeightChange
source§impl TryFrom<&str> for WeightChange
impl TryFrom<&str> for WeightChange
impl Copy for WeightChange
impl Eq for WeightChange
impl StructuralEq for WeightChange
impl StructuralPartialEq for WeightChange
Auto Trait Implementations§
impl RefUnwindSafe for WeightChange
impl Send for WeightChange
impl Sync for WeightChange
impl Unpin for WeightChange
impl UnwindSafe for WeightChange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.