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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SaturateRound<f32> for i32

Implementors§