
The Rust + Elm Stack
Software Unscripted
00:00
Dot Clone Is a Great Tool for Rust Development
When he started out with Rust, I used the dot clone method. For those who aren't familiar with Rust, this is basically a technique where you've got a piece of information and you want to pass it around to some function. But because of the borrow checker, it's like, nope, you can't do that. If you just dot clone it, in other words, just make a deep copy of that, of that thing that you're trying to pass around, it's going to be happy with it again. Of course, it's a performance cost to like cloning that whole thing, but it's a lot faster development wise than trying to figure out what the actual
Transcript
Play full episode