pub fn hex_to_usize(s: &str) -> Result<usize, ParseIntError>
Wrapper to convert a hex string to a usize.