fn skip_if(&mut self, predicate: impl Fn(char) -> bool) -> bool {
        match self.peek() {
            Some(ch) if predicate(ch) => {
                self.advance();
                true
            },
            Some(_) | None => false,
        }
    }
/// Skip by one character if the predicate matches the lookahead.
Skip by one character if the predicate matches the lookahead.
Skip by one character if the predicate matches the lookahead .
fn skip_if(&mut self, predicate: impl Fn(char) -> bool) -> bool {
        match self.peek() {
            Some(ch) if predicate(ch) => {
                self.advance();
                true
            },
            Some(_) | None => false,
        }
    }
fn skip_if ( & mut self , predicate : impl Fn ( char ) -> bool ) -> bool { match self . peek ( ) { Some ( ch ) if predicate ( ch ) => { self . advance ( ) ; true } , Some ( _ ) | None => false , } }
Skip by one character if the predicate matches the lookahead.
Skip by one character if the predicate matches the lookahead .
&mut self
predicate
impl Fn(char) -> bool
&mut self
predicate
impl Fn(char) -> bool