pub fn hex_u32_unchecked(s: &str) -> Result<u32, ParseIntError>
Available on crate feature
alloc
only.Expand description
Parses a u32
from an unprefixed hex string without first checking for a prefix.
ยงErrors
- If the input string contains a
0x
(or0X
) prefix, returnsInvalidDigit
due to thex
. - If the input string is not a valid hex encoding of a
u32
.