pub(crate) fn eat_while(&mut self, mut predicate: impl FnMut(char) -> bool) {
        while predicate(self.first()) && !self.is_eof() {
            self.eat();
        }
    }
/// Eats symbols while predicate returns true or until the end of file is reached.
Eats symbols while predicate returns true or until the end of file is reached.
Eats symbols while predicate returns true or until the end of file is reached .
pub(crate) fn eat_while(&mut self, mut predicate: impl FnMut(char) -> bool) {
        while predicate(self.first()) && !self.is_eof() {
            self.eat();
        }
    }
pub ( crate ) fn eat_while ( & mut self , mut predicate : impl FnMut ( char ) -> bool ) { while predicate ( self . first ( ) ) && ! self . is_eof ( ) { self . eat ( ) ; } }
Eats symbols while predicate returns true or until the end of file is reached.
Eats symbols while predicate returns true or until the end of file is reached .
&mut self
predicate
impl FnMut(char) -> bool
&mut self
predicate
impl FnMut(char) -> bool