Trait dcolor::Clamp [] [src]

pub trait Clamp: Sized {
    fn clamp_min() -> Self;
    fn clamp_max() -> Self;

    fn clamp(self) -> Self
    where
        Self: PartialOrd
, { ... } }

Trait for types which can be clamped between a minimum and maximum acceptable value.

Required Methods

Provided Methods

Implementors