Trait imageproc::definitions::Clamp [] [src]

pub trait Clamp<T> {
    fn clamp(x: T) -> Self;
}

A type to which we can clamp a value of type T. Implementations are not required to handle NaNs gracefully.

Required Methods

Clamp x to a valid value for this type.

Implementors