numberkit
pub fn as_u32<S>(text: S) -> Result<u32, ParseIntError> where S: AsRef<OsStr>,
covert string to u32
assert_eq!(1 as u32, numberkit::as_u32("1").unwrap());