Trait ApproxOrd

Source
pub trait ApproxOrd {
    // Required methods
    fn approx_eq(&self, other: &Self) -> bool;
    fn approx_cmp(&self, other: &Self) -> Ordering;
}

Required Methods§

Source

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

Source

fn approx_cmp(&self, other: &Self) -> Ordering

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

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for f64

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for i8

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for i16

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for i32

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for i64

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for i128

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for isize

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for u8

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for u16

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for u32

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for u64

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for u128

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Source§

impl ApproxOrd for usize

Source§

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

Source§

fn approx_cmp(&self, other: &Self) -> Ordering

Implementors§