100-exercises-to-learn-rust
100-exercises-to-learn-rust copied to clipboard
Clone trait - more insight as to when and where to clone or borrow.
As a beginner rust dev, when I have the problem of getting some data to a function, I'm having issues deciding whether to use clone() and when to borrow.
In section 04_traits/11_clone can you add some advice for this problem.
I'm also curious when using clone is idiomatic rust and when it isn't.