Trait tiny_skia_path::floating_point::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§
fn saturate_floor(n: T) -> Self
fn saturate_ceil(n: T) -> Self
fn saturate_round(n: T) -> Self
Object Safety§
This trait is not object safe.