pub trait MinMax: Sized {
// Required methods
fn nan_min_lt(&self, other: &Self) -> bool;
fn nan_max_lt(&self, other: &Self) -> bool;
// Provided methods
fn min_propagate_nan(self, other: Self) -> Self { ... }
fn max_propagate_nan(self, other: Self) -> Self { ... }
fn min_ignore_nan(self, other: Self) -> Self { ... }
fn max_ignore_nan(self, other: Self) -> Self { ... }
}
Required Methods§
fn nan_min_lt(&self, other: &Self) -> bool
fn nan_max_lt(&self, other: &Self) -> bool
Provided Methods§
fn min_propagate_nan(self, other: Self) -> Self
fn max_propagate_nan(self, other: Self) -> Self
fn min_ignore_nan(self, other: Self) -> Self
fn max_ignore_nan(self, other: Self) -> Self
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.