pub fn validate_range<T>(value: T, min: Option<T>, max: Option<T>) -> bool where
    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