pub fn tab<Input>() -> impl Parser<Input, Output = u8, PartialState = ()>
Expand description
Parses a tab byte (b'\t'
).
use combine::Parser;
use combine::parser::byte::tab;
assert_eq!(tab().parse(&b"\t"[..]), Ok((b'\t', &b""[..])));
assert!(tab().parse(&b" "[..]).is_err());