Trait ApproxZeroUlps

Source
pub trait ApproxZeroUlps: ApproxEqUlps {
    // Required method
    fn approx_zero_ulps(&self, ulps: <Self::Flt as Ulps>::U) -> bool;
}
Expand description

Approximate zero equality comparisons.

Required Methods§

Source

fn approx_zero_ulps(&self, ulps: <Self::Flt as Ulps>::U) -> bool

Checks if the number is approximately zero.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ApproxZeroUlps for f32

Source§

fn approx_zero_ulps(&self, ulps: i32) -> bool

Source§

impl ApproxZeroUlps for f64

Source§

fn approx_zero_ulps(&self, ulps: i64) -> bool

Implementors§