Trait float_cmp::FloatMargin
source · pub trait FloatMargin: Copy + Default {
type F;
type I;
// Required methods
fn zero() -> Self;
fn epsilon(self, epsilon: Self::F) -> Self;
fn ulps(self, ulps: Self::I) -> Self;
}
Expand description
A margin specifying a maximum distance two floating point values can be while still being considered equal enough.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.