Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
topliceanu opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@topliceanu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant