bitcoin_units::parse

Function hex_u128_unchecked

source
pub fn hex_u128_unchecked(s: &str) -> Result<u128, ParseIntError>
Available on crate feature alloc only.
Expand description

Parses a u128 from an unprefixed hex string without first checking for a prefix.

ยงErrors

  • If the input string contains a 0x (or 0X) prefix, returns InvalidDigit due to the x.
  • If the input string is not a valid hex encoding of a u128.