pub fn clamp<T>(value: T, min: T, max: T) -> Twhere
T: PartialOrd + Copy,
Expand description
Clamp a value to lie in the range min, max inclusive.
pub fn clamp<T>(value: T, min: T, max: T) -> Twhere
T: PartialOrd + Copy,
Clamp a value to lie in the range min, max inclusive.