Software Unscripted cover image

The Rust + Elm Stack

Software Unscripted

CHAPTER

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

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner