ApproxEq

Trait ApproxEq 

Source
pub trait ApproxEq {
    // Required methods
    fn approxeq(&self, other: &Self, _ulps: i64) -> bool;
    fn fmt(&self, f: &mut Formatter<'_>) -> Result;
}

Required Methods§

Source

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source

fn fmt(&self, f: &mut Formatter<'_>) -> Result

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 for bool

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for f32

Source§

fn approxeq(&self, other: &Self, ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for f64

Source§

fn approxeq(&self, other: &Self, ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for i8

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for i16

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for i32

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for i64

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for i128

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for isize

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for u8

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for u16

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for u32

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for u64

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for u128

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl ApproxEq for usize

Source§

fn approxeq(&self, other: &Self, _ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Source§

impl<T: ApproxEq, const N: usize> ApproxEq for [T; N]

Source§

fn approxeq(&self, other: &Self, ulps: i64) -> bool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Implementors§