Function combine::parser::byte::tab [−][src]
pub fn tab<Input>() -> impl Parser<Input, Output = u8, PartialState = ()> where
Input: Stream<Token = u8>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
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());