/// Look for the next token in the source input, updating the
/// remaining input after getting the token.
Look for the next token in the source input, updating the
remaining input after getting the token.
Look for the next token in the source input updating the remaining input after getting the token .
fn lookahead(&mut self) -> Option<(PlexToken, &'inp str)> {
        self.peek_token();
        self.peek_tok.take().and_then(|tok| match tok {
            PlexToken::EOF => None,
            tok => {
                self.remaining = self.peek_rem.take().unwrap();
                Some((tok, self.peek_delta.unwrap_or_default()))
            }
        })
    }
fn lookahead ( & mut self ) -> Option < ( PlexToken , & ' inp str ) > { self . peek_token ( ) ; self . peek_tok . take ( ) . and_then ( | tok | match tok { PlexToken :: EOF => None , tok => { self . remaining = self . peek_rem . take ( ) . unwrap ( ) ; Some ( ( tok , self . peek_delta . unwrap_or_default ( ) ) ) } } ) }
Look for the next token in the source input, updating the
remaining input after getting the token.
Look for the next token in the source input updating the remaining input after getting the token .
&mut self