Function combine::parser::byte::tab

source ·
pub fn tab<Input>() -> impl Parser<Input, Output = u8, PartialState = ()>
where Input: Stream<Token = u8>,
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());