pub fn tab<Input>() -> impl Parser<Input, Output = char, PartialState = ()> where
Input: Stream<Token = char>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
Expand description
Parses a tab character ('\t'
).
use combine::Parser;
use combine::parser::char::tab;
assert_eq!(tab().parse("\t"), Ok(('\t', "")));
assert!(tab().parse(" ").is_err());