pub fn clip<T: PartialEq + PartialOrd>( value: T, left_bound: T, right_bound: T ) -> T
Clips a value between the left and right bounds.