Skip to main content

ValidateFunc

Type Alias ValidateFunc 

Source
pub type ValidateFunc = Box<dyn Fn(&str) -> Result<(), String> + Send + Sync>;
Expand description

ValidateFunc is a function that returns an error if the input is invalid.

Aliased Typeยง

pub struct ValidateFunc(/* private fields */);