Function pear::parsers::eat_if

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

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