Function from_str_hex_to_u64

Source
pub fn from_str_hex_to_u64(hex_string: &str) -> Result<u64, ParseIntError>
Expand description

Converts a hexadecimal string to a u64 integer.

§Errors

Returns a std::num::ParseIntError if:

  • The input string contains non-hexadecimal characters
  • The hexadecimal value is too large to fit in a u64