Function combine::char::digit
[−]
[src]
pub fn digit<I>() -> Digit<I> where
I: Stream<Item = char>,
Parses a base-10 digit.
use combine::Parser; use combine::char::digit; assert_eq!(digit().parse("9"), Ok(('9', ""))); assert!(digit().parse("A").is_err());