[][src]Function pear::parsers::peek_if_copy

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

Succeeds if cond holds for the current token.