pear::parsers

Function peek_if_copy

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

Succeeds if cond holds for the current token.