Skip to main content

NextUp

Trait NextUp 

Source
pub trait NextUp: Sized {
    type Output;

    // Required method
    fn next_up(self) -> Self::Output;
}
Expand description

Steps one ULP towards positive infinity.

Required Associated Types§

Source

type Output

Returns the least number greater than self (one ULP up). Follows the inherent next_up semantics for zeros, infinities and NaN.

Required Methods§

Source

fn next_up(self) -> Self::Output

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

Source§

impl NextUp for f64

Implementors§