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.
pub fn check_range<T>(val: T, min: T, max: T) -> Result<T, String>where
T: PartialOrd + Display,Check if a value is within the specified range.