Expand description
Provides the Validator trait used for validate the values of an Argument.
Structs§
- Range
Validator - A
Validatorwhere astris valid if can be parsed to typeTand is within the specified range. - Type
Validator - A
Validatorwhere astris considered valid if can be parsed to a typeT.
Traits§
- Validator
- Exposes a method for check if an
strvalue is a valid argument value.
Functions§
- validate_
range - Constructs a
Validatorfor the given range. - validate_
type - Constructs a
Validatorfor the specified type.