Skip to main content

TestFloat

Trait TestFloat 

Source
pub trait TestFloat:
    Copy
    + PartialOrd
    + Sub<Output = Self>
    + Add<Output = Self>
    + Mul<Output = Self>
    + Abs
    + Max
    + Display {
    const RTOL: Self;
    const ATOL: Self;
}
Expand description

used in tests

Required Associated Constants§

Source

const RTOL: Self

Source

const ATOL: Self

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 TestFloat for f64

Source§

const RTOL: Self = 1e-14

Source§

const ATOL: Self = 1e-14

Implementors§