pub fn expect_punctuation(&mut self, c: char) -> ParseResult<()> {
        if self.cur != Some(Token::Punctuation(c)) {
            expected!(self, Punctuation(c));
        }
        self.bump();
        Ok(())
    }
/// Consumes the current token if it matches the
/// given punctuation, otherwise returns an error.
Consumes the current token if it matches the
given punctuation, otherwise returns an error.
Consumes the current token if it matches the given punctuation otherwise returns an error .
pub fn expect_punctuation(&mut self, c: char) -> ParseResult<()> {
        if self.cur != Some(Token::Punctuation(c)) {
            expected!(self, Punctuation(c));
        }
        self.bump();
        Ok(())
    }
pub fn expect_punctuation ( & mut self , c : char ) -> ParseResult < ( ) > { if self . cur != Some ( Token :: Punctuation ( c ) ) { expected ! ( self Punctuation ( c ) ) ; } self . bump ( ) ; Ok ( ( ) ) }
Consumes the current token if it matches the
given punctuation, otherwise returns an error.
Consumes the current token if it matches the given punctuation otherwise returns an error .
&mut self
c
char
&mut self
c
char