FuzzyZero

Trait FuzzyZero 

Source
pub trait FuzzyZero: FuzzyEq {
    // Required method
    fn is_fuzzy_zero(&self) -> bool;
}
Expand description

A trait for fuzzy/approximate comparisons of float numbers.

Required Methods§

Source

fn is_fuzzy_zero(&self) -> bool

Returns true 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 FuzzyZero for f32

Source§

impl FuzzyZero for f64

Implementors§