check_range

Function check_range 

Source
pub fn check_range<T>(val: T, min: T, max: T) -> Result<T, String>
where T: PartialOrd + Display,
Expand description

Check if a value is within the specified range.