pub trait NearlyOrd<Rhs = Self, LhsTol = Self, RhsTol = Rhs>: NearlyOrdTol<Rhs, LhsTol, RhsTol>{
// Provided methods
fn nearly_lt(&self, other: &Rhs) -> bool { ... }
fn nearly_le(&self, other: &Rhs) -> bool { ... }
fn nearly_gt(&self, other: &Rhs) -> bool { ... }
fn nearly_ge(&self, other: &Rhs) -> bool { ... }
}Expand description
A trait for nearly ordering comparison based on a default tolerance.
This trait is a convenience trait to use nearly ordering comparison with a default tolerance. This is the same as using the NearlyOrdTol trait with Tolerance::default().
Provided Methods§
Sourcefn nearly_lt(&self, other: &Rhs) -> bool
fn nearly_lt(&self, other: &Rhs) -> bool
Returns whether self is strict less than other but not nearly equal to other
based on the default tolerance for comparisons of self with other.
Sourcefn nearly_le(&self, other: &Rhs) -> bool
fn nearly_le(&self, other: &Rhs) -> bool
Returns whether self is strict less than other or nearly equal to other
based on the default tolerance for comparisons of self with other.