Re:String types in Rust
by tatterdemalion on Monday March 28, 2016 @05:42PM
(#11377650)
I've used it when I wanted to provide a value which was statically initialized with a literal in the source, but which could possibly mutate during program execution. Instead of doing `String::from` and performing the heap allocation regardless, the heap allocation is only performed if you actually mutate it.
[ Parent
| on HN ]
There are no comments on this comment yet.