pub fn validate_range<T>(value: T, min: Option<T>, max: Option<T>) -> boolwhere
T: PartialOrd + PartialEq,Expand description
Validates that the given value is inside the defined range. The max and min parameters are
optional and will only be validated if they are not None