PercentChange

Trait PercentChange 

Source
pub trait PercentChange<Rhs = Self> {
    type Output;

    // Required method
    fn percent_change(self, rhs: Rhs) -> Self::Output;
}
Expand description

The PercentChange trait establishes a binary operator for computing the percent change between two values where the caller is considered the original value.

Required Associated Types§

Required Methods§

Source

fn percent_change(self, rhs: Rhs) -> Self::Output

Implementors§

Source§

impl<A, B, C> PercentChange<B> for A
where C: Div<B, Output = C>, A: for<'b> Sub<&'b B, Output = C>,