Function combine::parser::char::oct_digit[][src]

pub fn oct_digit<Input>(
) -> impl Parser<Input, Output = char, PartialState = ()> where
    Input: Stream<Token = char>,
    Input::Error: ParseError<Input::Token, Input::Range, Input::Position>, 
Expand description

Parses an octal digit.

use combine::Parser;
use combine::parser::char::oct_digit;
assert_eq!(oct_digit().parse("7"), Ok(('7', "")));
assert!(oct_digit().parse("8").is_err());