Skip to main content

ApproxEq

Trait ApproxEq 

Source
pub trait ApproxEq<Rhs = Self> {
    // Required method
    fn approx_eq(&self, other: &Rhs, epsilon: GeometryMeasure) -> bool;
}
Expand description

Provides approximate equality comparisons with a caller-supplied epsilon.

Required Methods§

Source

fn approx_eq(&self, other: &Rhs, epsilon: GeometryMeasure) -> bool

Returns true if self and other are approximately equal.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§