Function is_a
fn is_a<T, I, Error: ParseError<I>>(arr: T) -> impl FnMut(I) -> crate::internal::IResult<I, I, 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.
Streaming specific
Streaming version will return a Err::Incomplete(Needed::new(1)) if the pattern wasn't met
or if the pattern reaches the end of the input.
Example
# use ;
use is_a;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;