ValidateFunc

Type Alias ValidateFunc 

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

ValidateFunc is a function that returns an error if the input is invalid. Add Send to satisfy bubbletea-rs Model:Send bound transitively.

Aliased Typeยง

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