[−][src]Function combine::parser::byte::tab
pub fn tab<I>() -> Tab<I> where
I: Stream<Item = u8>,
I::Error: ParseError<I::Item, I::Range, I::Position>,
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());