Struct piston_meta::meta_rules::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, tokens: &mut Vec<Range<MetaData>>, state: &TokenizerState, read_token: &ReadToken, refs: &[Rule]) -> ParseResult<TokenizerState>
Parses sequence. Fails if any sub rule fails.
Trait Implementations
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