/// Peek the next token in the source input.
/// Doesn't update the remaining input.
Peek the next token in the source input.
Doesn't update the remaining input.
Peek the next token in the source input . Doesn ' t update the remaining input .
fn peek_token(&mut self) -> Option<&PlexToken> {
        if self.peek_tok.is_none() {
            match take_token(self.remaining) {
                Some((tok, new_rem)) => {
                    self.peek_tok = Some(tok.0);
                    self.peek_delta = Some(tok.1);
                    self.peek_rem = Some(new_rem);
                }
                None => {
                    self.peek_tok = Some(PlexToken::EOF);
                    self.peek_delta = None;
                    self.peek_rem = None;
                }
            }
        }
        self.peek_tok.as_ref()
    }
fn peek_token ( & mut self ) -> Option < & PlexToken > { if self . peek_tok . is_none ( ) { match take_token ( self . remaining ) { Some ( ( tok , new_rem ) ) => { self . peek_tok = Some ( tok . 0 ) ; self . peek_delta = Some ( tok . 1 ) ; self . peek_rem = Some ( new_rem ) ; } None => { self . peek_tok = Some ( PlexToken :: EOF ) ; self . peek_delta = None ; self . peek_rem = None ; } } } self . peek_tok . as_ref ( ) }
Peek the next token in the source input.
Peek the next token in the source input .
&mut self