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