parse_hex_u32

Function parse_hex_u32 

Source
pub fn parse_hex_u32(hex_str: &str) -> Result<u32, ParseIntError>
Expand description

Parses a hexadecimal string with an optional “0x” prefix into a u32.

§Errors

Returns an error if the string is not a valid hexadecimal number.