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

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

A node reference.

Fields

name: Arc<String>

Name of rule.

property: Option<Arc<String>>

The property to set.

debug_id: DebugId

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

index: Option<usize>

The index to the rule reference.

Methods

impl Node
[src]

fn parse(&self, tokens: &mut Vec<Range<MetaData>>, state: &TokenizerState, read_token: &ReadToken, refs: &[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