pub const fn parse_u32(s: &str) -> Result<u32, ParseIntError>
Expand description
Parses a u32
from a &str
.
This returns an Err
if the string would not successfully .parse()
into a u32
.
To parse a u32
from only part of a string, you can use Parser::parse_u32
.
For an example of how to use this function, you can look at
the one for u128
.