tiny_skia_path

Trait SaturateRound

source
pub trait SaturateRound<T>: SaturateCast<T> {
    // Required methods
    fn saturate_floor(n: T) -> Self;
    fn saturate_ceil(n: T) -> Self;
    fn saturate_round(n: T) -> Self;
}
Expand description

Custom float to integer rounding routines.

Required Methods§

source

fn saturate_floor(n: T) -> Self

source

fn saturate_ceil(n: T) -> Self

source

fn saturate_round(n: T) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SaturateRound<f32> for i32

Implementors§