#[non_exhaustive]pub enum Change {
Percent(f64),
Points(f64),
FromZero,
NaN,
}Expand description
How a value has moved relative to its baseline record, oriented so
a positive number means worse. Returned by Threshold::change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Percent(f64)
A Scale::Ratio metric’s change as a percentage of the record.
Points(f64)
A Scale::Interval metric’s change in the metric’s own points;
a percentage of an arbitrary zero means nothing.
FromZero
A Scale::Ratio metric whose record was zero: any growth is an
unbounded percentage.
NaN
The current value is NaN.
Trait Implementations§
impl Copy for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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