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

pub fn clamp<T: PartialOrd>(n: T, start: T, end: T) -> T

Clamp a value between some range.