Type Definition nommy::text::OneDigits[][src]

type OneDigits = OneInRange<{ '0'..='9' }>;

OneDigits parses one character that matches any ascii digits

use nommy::{Parse, IntoBuf, text::OneDigits};
let mut buffer = "1024$".chars().into_buf();
let c: char = OneDigits::parse(&mut buffer).unwrap().into();
assert_eq!(c, '1');