pub fn hex_u32_prefixed(s: &str) -> Result<u32, PrefixedHexError>
Available on crate feature
alloc
only.Expand description
Parses a u32
from a prefixed hex string.
ยงErrors
- If the input string does not contain a
0x
(or0X
) prefix. - If the input string is not a valid hex encoding of a
u32
.