Function pear::parsers::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.