
Rust
Copy Versus Clone in Rust and Which Types Are Copy
Copy is an implicit bitwise duplicate and Clone is an explicit call that can do real work. Know which of your types should have which, and what each costs.
7 min read
Tag
2 posts

Copy is an implicit bitwise duplicate and Clone is an explicit call that can do real work. Know which of your types should have which, and what each costs.

Ownership is three rules the compiler checks for every value. This post builds a mental model from them and uses it to predict what compiles before you run the compiler.