[][src]Function pear::parsers::eat_if

pub fn eat_if<I, F>(input: &mut Pear<I>, cond: F) -> Result<I::Token, I> where
    I: Input,
    F: FnMut(&I::Token) -> bool

Eats the token token if cond holds on the current token.