Trait Epsilon

Source
pub trait Epsilon {
    // Required method
    fn epsilon() -> Self;
}
Expand description

A trait for finding the smallest fraction possible with a given Float type.

Required Methods§

Source

fn epsilon() -> Self

Return the difference between 1 and the next lowest value that follows 1.

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

Source§

impl Epsilon for f64

Implementors§