News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.