Enum commands::parser::Node
[−]
[src]
pub enum Node { Command(CommandNode), Parameter(ParameterNode), ParameterName(ParameterNameNode), Root(RootNode), }
Enumeration of node types used to have vectors of Node
and so on.
Variants
Command |
| |
Parameter |
| |
ParameterName |
| |
Root |
|
Methods
impl Node
The node in the tree of commands and parameters used in the parser.
This trait defines the core operations which a node must support.
fn node(&self) -> &TreeNode
Get the TreeNode
data for a given Node
.
fn successors(&self) -> &Vec<Rc<Node>>
Get or calculate successors of this node.