pub trait FuzzyEq<Rhs: ?Sized = Self> {
fn fuzzy_eq(&self, other: &Rhs) -> bool;
fn fuzzy_ne(&self, other: &Rhs) -> bool { ... }
}
Expand description
A trait for fuzzy/approximate equality comparisons of float numbers.
pub trait FuzzyEq<Rhs: ?Sized = Self> {
fn fuzzy_eq(&self, other: &Rhs) -> bool;
fn fuzzy_ne(&self, other: &Rhs) -> bool { ... }
}
A trait for fuzzy/approximate equality comparisons of float numbers.