pub trait ApproxEq: Sized {
type Margin: Copy + Default;
// Required method
fn approx_eq<M>(self, other: Self, margin: M) -> bool
where M: Into<Self::Margin>;
// Provided method
fn approx_ne<M>(self, other: Self, margin: M) -> bool
where M: Into<Self::Margin> { ... }
}
Expand description
A trait for approximate equality comparisons.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.