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.
- The hex string is longer than 16 characters (excluding 0x prefix).