pub fn anychar<T, E: ParseError<T>>(input: T) -> IResult<T, char, E>
Expand description
Matches one element as a character.
Streaming version: Will return Err(nom::Err::Incomplete(_))
if there’s not enough input data.
§Example
assert_eq!(anychar::<_, (_, ErrorKind)>("abc"), Ok(("bc",'a')));
assert_eq!(anychar::<_, (_, ErrorKind)>(""), Err(Err::Incomplete(Needed::new(1))));