Function clip

Source
pub fn clip<T: PartialOrd>(value: T, min: T, max: T) -> T
Expand description

Clip two values within a range