Skip to main content

CommandRule

Type Alias CommandRule 

Source
pub type CommandRule = fn(&[String], bool) -> Option<Result<(), String>>;
Expand description

A format’s ruling on a command (argv, whether a planning skill asks): Some(Ok) allowed, Some(Err(why)) refused, None no opinion.