Function pear::parsers::peek_if

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

Succeeds if cond holds for the current token.