pub(crate) fn next_while<P: FnMut(char) -> bool>(&mut self, mut predicate: P) {
        while predicate(self.peek_first()) && !self.is_eof() {
            self.next();
        }
    }
/// Advances the iterator based on a predicate.
///
/// This function takes a closure as an argument. [`Cursor::next`] is called until the
/// predicate returns `false`, or when the cursor reaches the end of the file.
Advances the iterator based on a predicate.
This function takes a closure as an argument. [`Cursor::next`] is called until the
predicate returns `false`, or when the cursor reaches the end of the file.
Advances the iterator based on a predicate . This function takes a closure as an argument . [ ` Cursor :: next ` ] is called until the predicate returns ` false ` or when the cursor reaches the end of the file .
pub(crate) fn next_while<P: FnMut(char) -> bool>(&mut self, mut predicate: P) {
        while predicate(self.peek_first()) && !self.is_eof() {
            self.next();
        }
    }
pub ( crate ) fn next_while < P : FnMut ( char ) -> bool > ( & mut self , mut predicate : P ) { while predicate ( self . peek_first ( ) ) && ! self . is_eof ( ) { self . next ( ) ; } }
Advances the iterator based on a predicate.
Advances the iterator based on a predicate .
&mut self
predicate
P
&mut self
predicate
P