pub fn oct_digit<Input>() -> impl Parser<Input, Output = u8, PartialState = ()>
Expand description
Parses an octal digit.
use combine::Parser;
use combine::parser::byte::oct_digit;
assert_eq!(oct_digit().parse(&b"7"[..]), Ok((b'7', &b""[..])));
assert!(oct_digit().parse(&b"8"[..]).is_err());