pub fn natural<O: FromStr<Err = ParseIntError>>() -> Parser<O>
Expand description
Natural number.
use memoir::*;
let p = natural::<u64>();
assert!(p.parse("0").is_ok());
assert!(p.parse("123").is_ok());
assert!(p.parse("043").is_ok());
assert!(p.parse("-55").is_err());