pub fn parse_hex_u32(hex: &str) -> Result<u32>
Parse hex string to u32.
Returns an error if the hex string cannot be parsed as u32.