Skip to main content

ValidateFn

Type Alias ValidateFn 

Source
pub type ValidateFn<T> = fn(&T) -> Result<(), String>;
Expand description

Post-parse validator. Runs after OptionType::parse succeeds and before commit; returning Err(_) cancels the set with that message.