pub struct RuleIter<'a> {
iter: Pairs<'a, Rule>,
done: bool,
}
Fields§
§iter: Pairs<'a, Rule>
§done: bool
Implementations§
Source§impl<'a> RuleIter<'a>
impl<'a> RuleIter<'a>
pub fn peek(&self) -> Option<Pair<'a, Rule>>
pub fn try_pop(&mut self, rule: Rule) -> Option<Pair<'a, Rule>>
pub fn pop(&mut self, rule: Rule) -> Pair<'a, Rule>
pub fn parse_if_next<T: ParsePair>(&mut self) -> Option<T>
pub fn parse_if_next_scoped<T: ScopedParsePair>( &mut self, extensions: &SimpleExtensions, ) -> Option<Result<T, MessageParseError>>
pub fn parse_next<T: ParsePair>(&mut self) -> T
pub fn parse_next_scoped<T: ScopedParsePair>( &mut self, extensions: &SimpleExtensions, ) -> Result<T, MessageParseError>
pub fn done(self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RuleIter<'a>
impl<'a> RefUnwindSafe for RuleIter<'a>
impl<'a> !Send for RuleIter<'a>
impl<'a> !Sync for RuleIter<'a>
impl<'a> Unpin for RuleIter<'a>
impl<'a> UnwindSafe for RuleIter<'a>
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