Struct piston_meta::meta_rules::Node [] [src]

pub struct Node {
    pub name: Rc<String>,
    pub property: Option<Rc<String>>,
    pub debug_id: DebugId,
    pub index: Cell<Option<usize>>,
}

A node reference.

Fields

name: Rc<String>

Name of rule.

property: Option<Rc<String>>

The property to set.

debug_id: DebugId

A debug id to track down the rule generating an error.

index: Cell<Option<usize>>

The index to the rule reference.

Methods

impl Node
[src]

fn parse(&self, tokens: &mut Vec<(Range, MetaData)>, state: &TokenizerState, chars: &[char], start_offset: usize, refs: &[(Rc<String>, Rule)]) -> ParseResult<TokenizerState>

Parses node.

Trait Implementations

impl PartialEq for Node
[src]

fn eq(&self, __arg_0: &Node) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Node) -> bool

This method tests for !=.

impl Debug for Node
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Node
[src]

fn clone(&self) -> Node

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more