Trait figures::Approx[][src]

pub trait Approx<T: AbsDiffEq> {
    fn approx_eq(&self, other: &Self) -> bool;

    fn approx_ne(&self, other: &Self) -> bool { ... }
}
Expand description

Allows comparing floating point numbers with approximation.

Uses [approx::AbsDiffEq] with the default epsilon.

Required methods

Returns true if the values are approximately equal. Uses [approx::AbsDiffEq] with the default epsilon.

Provided methods

Returns true if the values are not approximately equal. Uses [approx::AbsDiffEq] with the default epsilon.

Implementors