pub fn any<I, E>() -> Any<I, E>
Expand description
A parser that accepts any input (but not the end of input).
The output type of this parser is I
, the input that was found.
Examples
let any = any::<char, Cheap<char>>();
assert_eq!(any.parse("a"), Ok('a'));
assert_eq!(any.parse("7"), Ok('7'));
assert_eq!(any.parse("\t"), Ok('\t'));
assert!(any.parse("").is_err());