pub trait Node<P, R> {
// Required methods
fn name(&self) -> &str;
fn command(&self) -> Command;
fn children_nodes(&self) -> Vec<Box<dyn Node<P, R>>>;
fn pre_f(&self) -> Option<NodePreFn<P>>;
fn f(&self) -> Option<NodeFn<P, R>>;
}Expand description
Represents a command in the command tree.
Required Methods§
Sourcefn children_nodes(&self) -> Vec<Box<dyn Node<P, R>>>
fn children_nodes(&self) -> Vec<Box<dyn Node<P, R>>>
Subcommand nodes.