[][src]Function parze::permit

pub fn permit<'b, 'a, T: Clone + 'a, E: ParseError<T> + 'a>(
    f: impl Fn(T) -> bool + Clone + 'a
) -> Parser<'a, T, T, E, impl ParseFn<T, T, E> + Captures<'b> + 'a> where
    'a: 'b,
    'b: 'a, 

A parser that accepts one symbol provided it passes the given test.