Struct commands::parser::RootNode [] [src]

pub struct RootNode {
    pub node: TreeNode,
}

The root of a command tree.

Fields

node

TreeNode data.

Methods

impl RootNode

fn new(successors: Vec<Rc<Node>>) -> Self

Create a new RootNode

Trait Implementations

impl NodeOps for RootNode

RootNode does not want to perform any actual NodeOps as these operations should only be invoked by the Parser on successor nodes.

fn accept<'text>(&self, _parser: &mut Parser<'text>, _token: Token, _node_ref: &Rc<Node>)

fn acceptable(&self, _parser: &Parser, _node_ref: &Rc<Node>) -> bool

fn complete<'text>(&self, _token: Option<Token<'text>>) -> Completion<'text>

fn matches(&self, _parser: &Parser, _token: Token) -> bool