Struct piston_meta::Sequence [] [src]

pub struct Sequence {
    pub args: Vec<Rule>,
    pub debug_id: DebugId,
}

Stores information about sequence.

Fields

args: Vec<Rule>

The sequential rules.

debug_id: DebugId

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

Methods

impl Sequence
[src]

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

Parses sequence. Fails if any sub rule fails.

Trait Implementations

impl PartialEq for Sequence
[src]

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

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

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

This method tests for !=.

impl Debug for Sequence
[src]

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

Formats the value using the given formatter.

impl Clone for Sequence
[src]

fn clone(&self) -> Sequence

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