pub trait ApproxEq<R: Real, Rhs = Self>where
Rhs: ?Sized,{
// Required method
fn approx_eq(&self, other: &Rhs, epsilon: R, ulp: R::Bits) -> bool;
// Provided method
fn approx_ne(&self, other: &Rhs, epsilon: R, ulp: R::Bits) -> bool { ... }
}
Expand description
Tests for approximate equality.