Function combine::byte::tab
[−]
[src]
pub fn tab<I>() -> Tab<I> where
I: Stream<Item = u8>,
Parses a tab byteacter (b'\t'
).
use combine::Parser; use combine::byte::tab; assert_eq!(tab().parse(&b"\t"[..]), Ok((b'\t', &b""[..]))); assert!(tab().parse(&b" "[..]).is_err());