pub fn skip_while(&mut self, predicate: impl Fn(&Lexeme) -> bool) {
        while self.index < self.lexemes.len() && predicate(&self.lexemes[self.index]) {
            self.index.increment();
        }
    }
/// Skip lexemes until the index is at the first lexeme for which the predicate is false.
Skip lexemes until the index is at the first lexeme for which the predicate is false.
Skip lexemes until the index is at the first lexeme for which the predicate is false .
pub fn skip_while(&mut self, predicate: impl Fn(&Lexeme) -> bool) {
        while self.index < self.lexemes.len() && predicate(&self.lexemes[self.index]) {
            self.index.increment();
        }
    }
pub fn skip_while ( & mut self , predicate : impl Fn ( & Lexeme ) -> bool ) { while self . index < self . lexemes . len ( ) && predicate ( & self . lexemes [ self . index ] ) { self . index . increment ( ) ; } }
Skip lexemes until the index is at the first lexeme for which the predicate is false.
Skip lexemes until the index is at the first lexeme for which the predicate is false .
&mut self
predicate
impl Fn(&Lexeme) -> bool
&mut self
predicate
impl Fn(&Lexeme) -> bool