[][src]Function numberkit::as_u32

pub fn as_u32<S>(text: S) -> Result<u32, ParseIntError> where
    S: AsRef<OsStr>, 

covert string to u32

Example

assert_eq!(1 as u32, numberkit::as_u32("1").unwrap());