You can directly convert to an int using the str::parse::<T>() method. let my_string = "27".to_string(); // `parse()` works with `&str` and ...
確定! 回上一頁