Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Beginner's guide to error handling in Rust. Parent comment
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.
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.