[][src]Function rustils::parse::uint::str_to_u32

pub fn str_to_u32(a: &str) -> u32

Parse &str to u32

Panics

rustils::parse::uint::str_to_u32("-1");
rustils::parse::uint::str_to_u32("4294967296");

Arguments

Examples

use rustils::parse::uint::str_to_u32;

assert_eq!(str_to_u32("0"), 0_u32);
assert_eq!(str_to_u32("4294967295"), 4294967295_u32);