Skip to main content

ValueValidatorFn

Type Alias ValueValidatorFn 

Source
pub type ValueValidatorFn<'a> = dyn Fn(&OsStr) -> Result<()> + 'a;
Expand description

User-pluggable validator for a single value (OsStr-based, cross-platform).

The validator is expected to return a human-readable error message on failure. If you want to propagate a typed error, use validator_try(...).