Struct commands::parser::TreeNode
[−]
[src]
pub struct TreeNode { pub name: String, pub help_symbol: String, pub help_text: String, pub hidden: bool, pub priority: i32, pub repeatable: bool, pub repeat_marker: Option<Rc<Node>>, pub successors: Vec<Rc<Node>>, }
A parse tree node.
Fields
name: String
The name of this node.
help_symbol: String
The text used to identify this node in help text. This is typically the node name, either in plain form or decorated for parameters.
help_text: String
Help text describing this node.
Hidden nodes are not completed. This doesn't modify matching.
priority: i32
Match and complete priority.
repeatable: bool
Whether or not this node can be repeated. A repeated
node can be accept
ed multiple times.
repeat_marker: Option<Rc<Node>>
If present, this node will no longer be acceptable
.
successors: Vec<Rc<Node>>
Possible successor nodes. Collected while building.