pub struct MetricDelta {
pub before: f64,
pub after: f64,
pub delta: f64,
}Expand description
How one metric moved between parent and child.
Fields§
§before: f64The parent’s value.
after: f64The child’s value.
delta: f64after - before. Signed on purpose: whether that is good news
depends on the objective’s direction, which the move does not
presume to know.
Trait Implementations§
Source§impl Clone for MetricDelta
impl Clone for MetricDelta
Source§fn clone(&self) -> MetricDelta
fn clone(&self) -> MetricDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricDelta
impl Debug for MetricDelta
Source§impl<'de> Deserialize<'de> for MetricDelta
impl<'de> Deserialize<'de> for MetricDelta
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 PartialEq for MetricDelta
impl PartialEq for MetricDelta
Source§fn eq(&self, other: &MetricDelta) -> bool
fn eq(&self, other: &MetricDelta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricDelta
impl Serialize for MetricDelta
impl Copy for MetricDelta
impl StructuralPartialEq for MetricDelta
Auto Trait Implementations§
impl Freeze for MetricDelta
impl RefUnwindSafe for MetricDelta
impl Send for MetricDelta
impl Sync for MetricDelta
impl Unpin for MetricDelta
impl UnsafeUnpin for MetricDelta
impl UnwindSafe for MetricDelta
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