Trait cosmic::iced_winit::graphics::geometry::path::lyon_path::geom::euclid::approxeq::ApproxEq
source · pub trait ApproxEq<Eps> {
// Required methods
fn approx_epsilon() -> Eps;
fn approx_eq_eps(&self, other: &Self, approx_epsilon: &Eps) -> bool;
// Provided method
fn approx_eq(&self, other: &Self) -> bool { ... }
}
Expand description
Trait for testing approximate equality
Required Methods§
sourcefn approx_epsilon() -> Eps
fn approx_epsilon() -> Eps
Default epsilon value
sourcefn approx_eq_eps(&self, other: &Self, approx_epsilon: &Eps) -> bool
fn approx_eq_eps(&self, other: &Self, approx_epsilon: &Eps) -> bool
Returns true
if this object is approximately equal to the other one, using
a provided epsilon value.
Provided Methods§
sourcefn approx_eq(&self, other: &Self) -> bool
fn approx_eq(&self, other: &Self) -> bool
Returns true
if this object is approximately equal to the other one, using
the approx_epsilon
epsilon value.
Object Safety§
This trait is not object safe.