Function satisfy
fn satisfy<F, I, Error: ParseError<I>>(predicate: F) -> impl Parser<I, Output = char, Error = Error>
where
I: Input,
<I as Input>::Item: AsChar,
F: Fn(char) -> bool
Recognizes one character and checks that it satisfies a predicate
Example
# use ;
# use satisfy;
assert_eq!;
assert_eq!;
assert_eq!;