tiny_skia::wide

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

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§