Struct commands::parser::ParameterNameNode [] [src]

pub struct ParameterNameNode {
    pub node: TreeNode,
    pub parameter: Rc<Node>,
}

A node that represented the name portion of a named parameter.

Fields

node

TreeNode data.

parameter

The parameter named by this node.

Methods

impl ParameterNameNode

fn new(name: &str, hidden: bool, priority: i32, successors: Vec<Rc<Node>>, repeatable: bool, repeat_marker: Option<Rc<Node>>, parameter: Rc<Node>) -> Self

Construct a new ParameterNameNode.

Trait Implementations

impl NodeOps for ParameterNameNode

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