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 NaN
s gracefully.
Required Methods
fn clamp(x: T) -> Self
Clamp x
to a valid value for this type.