bool

Function bool 

Source
pub fn bool<F>(predicate: F) -> impl Validator
where F: Fn(&bool) -> Result<(), String> + 'static,
Expand description

Match if bool match predicate.