fn look(&mut self, rule: Rule) -> Option<Pair<Rule>> {
        if self.peek(rule) {
            Some(self.take(rule))
        } else {
            None
        }
    }
/// Look at the next pair and checks if its `Rule` matches `rule`, consumes the pair if it
/// matches. Useful for checking for optional wrapper rules.
Look at the next pair and checks if its `Rule` matches `rule`, consumes the pair if it
matches. Useful for checking for optional wrapper rules.
Look at the next pair and checks if its ` Rule ` matches ` rule ` consumes the pair if it matches . Useful for checking for optional wrapper rules .
fn look(&mut self, rule: Rule) -> Option<Pair<Rule>> {
        if self.peek(rule) {
            Some(self.take(rule))
        } else {
            None
        }
    }
fn look ( & mut self , rule : Rule ) -> Option < Pair < Rule > > { if self . peek ( rule ) { Some ( self . take ( rule ) ) } else { None } }
Look at the next pair and checks if its `Rule` matches `rule`, consumes the pair if it
matches.
Look at the next pair and checks if its ` Rule ` matches ` rule ` consumes the pair if it matches .
&mut self
rule
Rule
&mut self
rule
Rule