Struct piston_meta::meta_rules::Lines [] [src]

pub struct Lines {
    pub rule: Rule,
    pub debug_id: DebugId,
}

Stores information about lines.

Fields

rule: Rule

The rule to read lines. This can be a multi-line rule.

debug_id: DebugId

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

Methods

impl Lines
[src]

fn parse(&self, tokenizer: &mut Vec<Range<MetaData>>, state: &TokenizerState, read_token: &ReadToken, refs: &[Rule]) -> ParseResult<TokenizerState>

Parses rule separated by one or more lines. Ignores lines that only contain whitespace characters.

Trait Implementations

impl PartialEq for Lines
[src]

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

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

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

This method tests for !=.

impl Debug for Lines
[src]

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

Formats the value using the given formatter.

impl Clone for Lines
[src]

fn clone(&self) -> Lines

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