pub trait PercentDifference<Rhs = Self> {
type Output;
// Required method
fn percent_diff(self, rhs: Rhs) -> Self::Output;
}Expand description
a trait for computing the percent difference between two values where the caller is considered the original value
Required Associated Types§
Required Methods§
Sourcefn percent_diff(self, rhs: Rhs) -> Self::Output
fn percent_diff(self, rhs: Rhs) -> Self::Output
Computes the percent difference between two values.