|
|
|
|
|
by QuantumNomad_
245 days ago
|
|
When you have a &str (like "Blue October") and pass it to something that wants a String, you can do .into() instead of .to_string() It’s shorter to write and takes up a little less space on screen to. I almost always use .into() when like in your example I initialize String field members of a struct in Rust. |
|