Skip to main content

check_range

Function check_range 

Source
pub fn check_range<T>(value: T, min: T, max: T, name: &str) -> CoreResult<T>
where T: PartialOrd + Display + Copy,
Expand description

Check that a value is within a range