Skip to main content

ValidatorFn

Type Alias ValidatorFn 

Source
pub type ValidatorFn = dyn Fn(&mut State<'_>, &mut Update) -> bool + Send + Sync;
Expand description

The function of a custom validator: the current state and an update to fill in; true to pass.