News for hackers. Stuff that matters.
Re:Beginner's guide to error handling in Rust by masklinn on Sunday July 10, 2022 @02:24PM (#32047396)
> 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.

There are no comments on this comment yet.