fn ensure_queue_filled(&mut self, min_tokens: usize) {
        if let Some(&Spanned {
            value: Token::Eof, ..
        }) = self.queue.back()
        {
            return;
        }
        while self.queue.len() <= min_tokens {
            match self.input.next() {
                Some(t) => self.queue.push_back(t),
                None => {
                    self.queue
                        .push_back(Spanned::new(Token::Eof, self.last_span.end().into()));
                    break;
                }
            }
        }
    }
/// Ensure that either the end of file has been reached, or at least
/// `min_tokens` tokens are in the queue.
Ensure that either the end of file has been reached, or at least
`min_tokens` tokens are in the queue.
Ensure that either the end of file has been reached or at least ` min_tokens ` tokens are in the queue .
fn ensure_queue_filled(&mut self, min_tokens: usize) {
        if let Some(&Spanned {
            value: Token::Eof, ..
        }) = self.queue.back()
        {
            return;
        }
        while self.queue.len() <= min_tokens {
            match self.input.next() {
                Some(t) => self.queue.push_back(t),
                None => {
                    self.queue
                        .push_back(Spanned::new(Token::Eof, self.last_span.end().into()));
                    break;
                }
            }
        }
    }
fn ensure_queue_filled ( & mut self , min_tokens : usize ) { if let Some ( & Spanned { value : Token :: Eof , .. } ) = self . queue . back ( ) { return ; } while self . queue . len ( ) <= min_tokens { match self . input . next ( ) { Some ( t ) => self . queue . push_back ( t ) , None => { self . queue . push_back ( Spanned :: new ( Token :: Eof , self . last_span . end ( ) . into ( ) ) ) ; break ; } } } }
Ensure that either the end of file has been reached, or at least
`min_tokens` tokens are in the queue.
Ensure that either the end of file has been reached or at least ` min_tokens ` tokens are in the queue .
&mut self
min_tokens
usize
&mut self
min_tokens
usize