Trait tiny_skia_path::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.