Skip to main content

Minimum

Trait Minimum 

Source
pub trait Minimum: Sized {
    type Output;

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

IEEE 754-2019 minimum (NaN-propagating, unlike min).

Required Associated Types§

Source

type Output

Returns the lesser of two numbers, propagating NaN and treating -0.0 as less than +0.0 — the IEEE 754-2019 minimum operation, in contrast to min which ignores NaN.

Required Methods§

Source

fn minimum(self, other: 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 Minimum for f32

Source§

type Output = f32

Source§

fn minimum(self, other: Self) -> f32

Source§

impl Minimum for f64

Source§

type Output = f64

Source§

fn minimum(self, other: Self) -> f64

Implementors§