pear::parsers

Function 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.