pub fn tab<I, Error: ParseError<I>>(input: I) -> IResult<I, char, Error>where
I: Stream,
<I as Stream>::Token: AsChar,👎Deprecated since 0.1.0: Replaced with <code>winnow::character::tab</code> with input wrapped in <code>winnow::Partial</code>
Expand description
Matches a tab character ‘\t’.
Partial version: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there’s not enough input data.
Example
assert_eq!(tab::<_, Error<_>>("\tc"), Ok(("c", '\t')));
assert_eq!(tab::<_, Error<_>>("\r\nc"), Err(ErrMode::Backtrack(Error::new("\r\nc", ErrorKind::Char))));
assert_eq!(tab::<_, Error<_>>(""), Err(ErrMode::Incomplete(Needed::new(1))));WARNING: Deprecated, replaced with winnow::character::tab with input wrapped in winnow::Partial