pear::parsers

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