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