Struct piston_meta::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 Tokenizer, state: &TokenizerState, chars: &[char], start_offset: usize, refs: &[(Rc<String>, 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]
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