Trait tiny_skia::wide::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§