pub struct Comparison {
pub a: String,
pub b: String,
pub largest: (f64, Option<f64>, String),
pub smallest: (f64, Option<f64>, String),
pub largest_pct: Option<(f64, Option<f64>, String)>,
pub smallest_pct: Option<(f64, Option<f64>, String)>,
}Expand description
b − a per shared x, for a plot of exactly two series (2025 against
2024, actual against plan): where the gap is largest and smallest.
Fields§
§a: String§b: String§largest: (f64, Option<f64>, String)(b − a, (b − a) / |a| in %, x) of the largest and smallest difference.
smallest: (f64, Option<f64>, String)§largest_pct: Option<(f64, Option<f64>, String)>The same by the % change, when that ranks the x values differently.
smallest_pct: Option<(f64, Option<f64>, String)>Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§impl Debug for Comparison
impl Debug for Comparison
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Forget for Comparison
impl Freeze for Comparison
impl Move for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnsafeUnpin for Comparison
impl UnwindSafe for Comparison
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