Skip to main content

IsCloseFloat

Trait IsCloseFloat 

Source
pub trait IsCloseFloat {
    // Required method
    fn is_close(self, other: Self, rel_tol: Self, abs_tol: Self) -> bool;
}

Required Methods§

Source

fn is_close(self, other: Self, rel_tol: Self, abs_tol: Self) -> bool

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 IsCloseFloat for f64

Source§

fn is_close(self, other: f64, rel_tol: f64, abs_tol: f64) -> bool

Implementors§