[][src]Function validator::validate_range

#[must_use]pub fn validate_range<T>(value: T, min: Option<T>, max: Option<T>) -> bool where
    T: PartialOrd + PartialEq

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