bitcoin_units::parse

Function hex_u128

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

Parses a u128 from a hex string.

Input string may or may not contain a 0x (or 0X) prefix.

ยงErrors

If the input string is not a valid hex encoding of a u128.