pub fn anychar<T, E: ParseError<T>>(input: T) -> IResult<T, char, E>where
T: Stream,
<T as Stream>::Token: AsChar,👎Deprecated since 0.1.0: Replaced with <code>winnow::bytes::any</code> with input wrapped in <code>winnow::Partial</code>
Expand description
Matches one byte as a character. Note that the input type will
accept a str, but not a &[u8], unlike many other parsers.
Partial version: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there’s not enough input data.
Example
assert_eq!(anychar::<_, Error<_>>("abc"), Ok(("bc",'a')));
assert_eq!(anychar::<_, Error<_>>(""), Err(ErrMode::Incomplete(Needed::new(1))));WARNING: Deprecated, replaced with winnow::bytes::any with input wrapped in winnow::Partial