[][src]Trait sp_arithmetic::ThresholdOrd

pub trait ThresholdOrd<T> {
    fn tcmp(&self, other: &T, epsilon: T) -> Ordering;
}

Trait for comparing two numbers with an threshold.

Returns:

Required methods

fn tcmp(&self, other: &T, epsilon: T) -> Ordering

Compare if self is threshold greater or less than other.

Loading content...

Implementors

impl<T> ThresholdOrd<T> for T where
    T: Ord + PartialOrd + Copy + Clone + Zero + Saturating
[src]

Loading content...