Enum subweight_core::RelativeChange
source · pub enum RelativeChange {
Unchanged,
Added,
Removed,
Changed,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for RelativeChange
impl Clone for RelativeChange
source§fn clone(&self) -> RelativeChange
fn clone(&self) -> RelativeChange
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 RelativeChange
impl Debug for RelativeChange
source§impl<'de> Deserialize<'de> for RelativeChange
impl<'de> Deserialize<'de> for RelativeChange
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for RelativeChange
impl FromStr for RelativeChange
source§impl Ord for RelativeChange
impl Ord for RelativeChange
source§fn cmp(&self, other: &RelativeChange) -> Ordering
fn cmp(&self, other: &RelativeChange) -> 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 for RelativeChange
impl PartialEq for RelativeChange
source§fn eq(&self, other: &RelativeChange) -> bool
fn eq(&self, other: &RelativeChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RelativeChange
impl PartialOrd for RelativeChange
source§fn partial_cmp(&self, other: &RelativeChange) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativeChange) -> 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 ValueEnum for RelativeChange
impl ValueEnum for RelativeChange
impl Copy for RelativeChange
impl Eq for RelativeChange
impl StructuralEq for RelativeChange
impl StructuralPartialEq for RelativeChange
Auto Trait Implementations§
impl RefUnwindSafe for RelativeChange
impl Send for RelativeChange
impl Sync for RelativeChange
impl Unpin for RelativeChange
impl UnwindSafe for RelativeChange
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