ExtFloat

Trait ExtFloat 

Source
pub trait ExtFloat: Clone {
    // Required method
    fn ext_nextafter(self, other: Self) -> Self;
}
Expand description

Extension trait for float types (num::Float).

Required Methods§

Source

fn ext_nextafter(self, other: Self) -> Self

Returns the next representable floating-point value after self in the direction of other.

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

Source§

fn ext_nextafter(self, other: f32) -> f32

Source§

impl ExtFloat for f64

Source§

fn ext_nextafter(self, other: f64) -> f64

Source§

impl ExtFloat for bf16

Source§

fn ext_nextafter(self, other: bf16) -> bf16

Source§

impl ExtFloat for f16

Source§

fn ext_nextafter(self, other: f16) -> f16

Implementors§