pub struct ComparisonItem {
pub label: String,
pub before: f64,
pub after: f64,
pub unit: String,
}Expand description
One measure: a value before and a value after.
Fields§
§label: StringMeasure label.
before: f64The first value (the reference).
after: f64The second value.
unit: StringPrinted after both values, e.g. "%".
Implementations§
Trait Implementations§
Source§impl Clone for ComparisonItem
impl Clone for ComparisonItem
Source§impl Debug for ComparisonItem
impl Debug for ComparisonItem
Source§impl PartialEq for ComparisonItem
impl PartialEq for ComparisonItem
impl StructuralPartialEq for ComparisonItem
Auto Trait Implementations§
impl Freeze for ComparisonItem
impl RefUnwindSafe for ComparisonItem
impl Send for ComparisonItem
impl Sync for ComparisonItem
impl Unpin for ComparisonItem
impl UnsafeUnpin for ComparisonItem
impl UnwindSafe for ComparisonItem
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more