validate_length

Function validate_length 

Source
pub fn validate_length<T: Length>(
    value: T,
    min: Option<usize>,
    max: Option<usize>,
    equal: Option<usize>,
) -> bool
Expand description

Validates the length of the value given.

If the validator has equal set, it will ignore any min and max value.

See the Length trait for more details.