Struct piston_meta::Repeat [] [src]

pub struct Repeat {
    pub rule: Rule,
    pub optional: bool,
    pub debug_id: DebugId,
}

Stores inforamtion about separated by.

Fields

rule: Rule

The rule to separate.

optional: bool

Whether the rule must occur at least once.

debug_id: DebugId

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

Methods

impl Repeat
[src]

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

Parses rule repeatedly.

Trait Implementations

impl Clone for Repeat
[src]

fn clone(&self) -> Repeat

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