Skip to main content

AssertClose

Trait AssertClose 

Source
pub trait AssertClose: Sized + Copy {
    type Tol;

    // Required method
    fn assert_close(self, truth: Self, rtol: Self::Tol);
}
Expand description

test two values are close in relative tolerance sense

Required Associated Types§

Required Methods§

Source

fn assert_close(self, truth: Self, rtol: Self::Tol)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AssertClose for Complex<f32>

Source§

type Tol = f32

Source§

fn assert_close(self, truth: Self, rtol: Self::Tol)

Source§

impl AssertClose for Complex<f64>

Source§

type Tol = f64

Source§

fn assert_close(self, truth: Self, rtol: Self::Tol)

Source§

impl AssertClose for f32

Source§

type Tol = f32

Source§

fn assert_close(self, truth: Self, rtol: Self::Tol)

Source§

impl AssertClose for f64

Source§

type Tol = f64

Source§

fn assert_close(self, truth: Self, rtol: Self::Tol)

Implementors§