Function as_u32

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

covert string to u32

ยงExample

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