Function is_a
fn is_a<T, I, Error: ParseError<I>>(arr: T) -> impl Parser<I, Output = I, Error = Error>
where
I: Input,
T: FindToken<<I as Input>::Item>
Returns the longest slice of the matches the pattern.
The parser will return the longest slice consisting of the characters in provided in the combinator's argument.
It will return a Err(Err::Error((_, ErrorKind::IsA))) if the pattern wasn't met.
Example
# use ;
use is_a;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;