parse
Turning text into a value such as a number.
str::parse::
Examples
"42".parse::<i32>()isOk(42), and"300".parse::<u8>()isErr(ParseIntError { kind: PosOverflow }).
See also
Turning text into a value such as a number.
str::parse::
Examples
"42".parse::<i32>() is Ok(42), and "300".parse::<u8>() is Err(ParseIntError { kind: PosOverflow }).
See also