pub trait FasterMinMax {
// Required methods
fn faster_min(self, rhs: f32) -> f32;
fn faster_max(self, rhs: f32) -> f32;
}Expand description
A faster and more forgiving f32 min/max implementation.
Unlike std one, we do not care about NaN.
Required Methods§
fn faster_min(self, rhs: f32) -> f32
fn faster_max(self, rhs: f32) -> f32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".