fn eat(&mut self, expected: TokenKind) -> PResult<()> {
        if self.token.kind != expected {
            return Err(self.err(ErrorKind::unexpected_token(vec![expected], self.token.clone())));
        }
        self.bump();
        Ok(())
    }
/// Consume the next token, asserting its kind is equal to `expected`.
Consume the next token, asserting its kind is equal to `expected`.
Consume the next token asserting its kind is equal to ` expected ` .
fn eat(&mut self, expected: TokenKind) -> PResult<()> {
        if self.token.kind != expected {
            return Err(self.err(ErrorKind::unexpected_token(vec![expected], self.token.clone())));
        }
        self.bump();
        Ok(())
    }
fn eat ( & mut self , expected : TokenKind ) -> PResult < ( ) > { if self . token . kind != expected { return Err ( self . err ( ErrorKind :: unexpected_token ( vec ! [ expected ] , self . token . clone ( ) ) ) ) ; } self . bump ( ) ; Ok ( ( ) ) }
Consume the next token, asserting its kind is equal to `expected`.
Consume the next token asserting its kind is equal to ` expected ` .
&mut self
expected
TokenKind