Trait aurum_numeric::Clamp [] [src]

pub trait Clamp: Sized {
    fn clamp(self) -> Self;
    fn is_clamped(&self) -> bool;
    fn max_value() -> Self;
    fn min_value() -> Self;
}

Trait for numbers which may be "clamped" within a minimum and maximum value.

Required Methods

Implementors