The Rust Programming Language Forum
What is the idiomatic way to convert &str to String?
help
carols10cents
August 2, 2017, 1:22pm
10
Here's what we decided to go with for the book
7 Likes
show post in topic
Related Topics
Topic
Replies
Views
Activity
`to_string()` vs `to_owned()` for string literals
help
10
69112
December 13, 2021
Current guidance on &str to String (to_owned vs to_string)
help
7
4854
August 15, 2022
Owned String literal?
help
8
2637
January 12, 2023
[Conversion Traits] FromStr vs From<&str> vs Display vs
help
3
1340
May 21, 2021
Converting between &str and String
10
37874
April 3, 2021