Struct commands::parser::CommandTree [] [src]

pub struct CommandTree<'a> { /* fields omitted */ }

Store a command tree while populating it. This is used to construct a RootNode to be used with the Parser.

The lifetime parameter 'a refers to the lifetime of the strings used for command and parameter names and help text.

Methods

impl<'a> CommandTree<'a>
[src]

Create a new CommandTree.

Add a Command to the CommandTree.

Construct the CommandTree and produce a RootNode.

Trait Implementations

impl<'a> Default for CommandTree<'a>
[src]

Returns the "default value" for a type. Read more