Re:Rust is for Professionals
by wyldfire on Tuesday April 13, 2021 @12:12PM
(#26794481)
I clone all the time to make the borrow checker leave me alone. If this code shows up as a hot spot in a profile I can spend the extra energy to optimize it.
I hope to evolve my understanding so that I can do the right thing at design time to minimize unnecessary clone()s.
I hope to evolve my understanding so that I can do the right thing at design time to minimize unnecessary clone()s.