Does Rust's String::from() copy all the string data?

后端 未结 0 1863
长发绾君心
长发绾君心 2021-01-31 06:34

I notice that I need to constantly need to do String::from("mydummystring") in Rust. Does the call to from() end up creating a full copy of s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题