3 ms·
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 exec
by tatterdemalion 11y ago
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.
- deleted 11y ago[deleted]