3 ms·
> Or is that necessary because of the borrow checker? It’s not because of the borrow checker, it’s because Rust defaults to (destructive) moves, and implicit c
by masklinn 4y ago
> Or is that necessary because of the borrow checker?
It’s not because of the borrow checker, it’s because Rust defaults to (destructive) moves, and implicit copies can only be trivial.
Any non-trivial copy has to go through an explicit clone() instead.