NodeFn

Type Alias NodeFn 

Source
pub type NodeFn<P, R> = Box<dyn FnOnce(&ArgMatches, Option<P>) -> Result<R, TreeError>>;
Expand description

Defines the type of function to be called in the command tree.

Aliased Typeยง

pub struct NodeFn<P, R>(/* private fields */);