Skip to main content

FasterMinMax

Trait FasterMinMax 

Source
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§

Source

fn faster_min(self, rhs: f32) -> f32

Source

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".

Implementations on Foreign Types§

Source§

impl FasterMinMax for f32

Source§

fn faster_min(self, rhs: f32) -> f32

Source§

fn faster_max(self, rhs: f32) -> f32

Implementors§