Struct piston_meta::meta_rules::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, tokens: &mut Vec<Range<MetaData>>, state: &TokenizerState, read_token: &ReadToken, refs: &[Rule]) -> ParseResult<TokenizerState>

Parses rule repeatedly.

Trait Implementations

impl PartialEq for Repeat
[src]

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

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

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

This method tests for !=.

impl Debug for Repeat
[src]

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

Formats the value using the given formatter.

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