pub(crate) struct RuleIter<'a> {
iter: Pairs<'a, Rule>,
done: bool,
}Fields§
§iter: Pairs<'a, Rule>§done: boolImplementations§
Source§impl<'a> RuleIter<'a>
impl<'a> RuleIter<'a>
pub(crate) fn peek(&self) -> Option<Pair<'a, Rule>>
pub(crate) fn try_pop(&mut self, rule: Rule) -> Option<Pair<'a, Rule>>
pub(crate) fn pop(&mut self, rule: Rule) -> Pair<'a, Rule>
pub(crate) fn parse_if_next<T: ParsePair>(&mut self) -> Option<T>
pub(crate) fn parse_if_next_scoped<T: ScopedParsePair>( &mut self, extensions: &SimpleExtensions, ) -> Option<Result<T, MessageParseError>>
pub(crate) fn parse_next<T: ParsePair>(&mut self) -> T
pub(crate) fn parse_next_scoped<T: ScopedParsePair>( &mut self, extensions: &SimpleExtensions, ) -> Result<T, MessageParseError>
pub(crate) 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> UnsafeUnpin 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