bitcoin_units::parse

Function hex_u32_unprefixed

source
pub fn hex_u32_unprefixed(s: &str) -> Result<u32, UnprefixedHexError>
Available on crate feature alloc only.
Expand description

Parses a u32 from an unprefixed hex string.

ยงErrors

  • If the input string contains a 0x (or 0X) prefix.
  • If the input string is not a valid hex encoding of a u32.