Question : rust parse int from string
Answered by : wideeyed-walrus-kruwzfbhouii
let my_string = "27".to_string(); // `parse()` works with `&str` and `String`!
let my_int = my_string.parse::<i32>().unwrap();
Source : https://stackoverflow.com/questions/27043268/convert-a-string-to-int | Last Update : Tue, 08 Jun 21