100-exercises-to-learn-rust icon indicating copy to clipboard operation
100-exercises-to-learn-rust copied to clipboard

Clone trait - more insight as to when and where to clone or borrow.

Open topliceanu opened this issue 1 year ago • 0 comments

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.

topliceanu avatar Nov 29 '24 14:11 topliceanu