i_slint_core::graphics::border_radius

Trait ApproxEq

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

Trait for testing approximate equality

Required Methods§

Source

fn approx_eq(&self, other: &Self) -> bool

Returns true is this object is approximately equal to the other one.

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 ApproxEq<f32> for f32

Source§

fn approx_eq(&self, other: &f32) -> bool

Source§

impl ApproxEq<i16> for i16

Source§

fn approx_eq(&self, other: &i16) -> bool

Source§

impl ApproxEq<i32> for i32

Source§

fn approx_eq(&self, other: &i32) -> bool

Implementors§