Struct piston_meta::Node
[−]
[src]
pub struct Node { pub name: Rc<String>, pub property: Option<Rc<String>>, pub debug_id: DebugId, pub index: Cell<Option<usize>>, pub node_visit: Cell<NodeVisit>, }
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.
node_visit: Cell<NodeVisit>
Whether the reference has been visited.
Methods
impl Node
[src]
fn parse(&self, tokenizer: &mut Tokenizer, state: &TokenizerState, chars: &[char], start_offset: usize, refs: &[(Rc<String>, Rule)]) -> ParseResult<TokenizerState>
Parses node.
Trait Implementations
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