pub struct Sequence {
pub args: Vec<Rule>,
pub debug_id: DebugId,
}Expand description
Stores information about sequence.
Fields§
§args: Vec<Rule>The sequential rules.
debug_id: DebugIdA debug id to track down the rule generating an error.
Implementations§
Source§impl Sequence
impl Sequence
Sourcepub fn parse(
&self,
tokens: &mut Vec<Range<MetaData>>,
state: &TokenizerState,
read_token: &ReadToken<'_>,
refs: &[Rule],
indent_settings: &mut IndentSettings,
) -> ParseResult<TokenizerState>
pub fn parse( &self, tokens: &mut Vec<Range<MetaData>>, state: &TokenizerState, read_token: &ReadToken<'_>, refs: &[Rule], indent_settings: &mut IndentSettings, ) -> ParseResult<TokenizerState>
Parses sequence. Fails if any sub rule fails.
Trait Implementations§
impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more