Function conrod::utils::clamp [−] [src]

pub fn clamp<T: PartialOrd>(n: T, min: T, max: T) -> T

Clamp a value between a given min and max.