bitcoin_units::parse

Function hex_u32

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

Parses a u32 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 u32.