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§
Sourcefn is_fuzzy_zero(&self) -> bool
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.