Trait sp_arithmetic::ThresholdOrd [−][src]
Trait for comparing two numbers with an threshold.
Returns:
Ordering::Greaterifselfis greater thanother + threshold.Ordering::Lessifselfis less thanother - threshold.Ordering::Equalotherwise.
Required methods
fn tcmp(&self, other: &T, epsilon: T) -> Ordering[src]
Compare if self is threshold greater or less than other.
Implementors
impl<T> ThresholdOrd<T> for T where
T: Ord + PartialOrd + Copy + Clone + Zero + Saturating, [src]
impl<T> ThresholdOrd<T> for T where
T: Ord + PartialOrd + Copy + Clone + Zero + Saturating, [src]