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

[exersizes/conversions/as_ref_mut.rs] Why should I want to use AsRef / AsMut #1350

Open
TheLarkInn opened this issue Jan 27, 2023 · 2 comments

Comments

@TheLarkInn
Copy link

As a first time rust learner, after the as_ref_mut.rs lesson, I was left curious why AsRef or AsMut are valuable tools. Typically I look for a hint to provide these answers, however the hint is pretty lacking here:

Feature Request: Please provide a more elaborate explanation as to why AsRef or AsMut are so valueable, and why I would need to use them. Additionally, perhaps provide more unit tests also showcasing why I would want to use these two impls/methods.

(Just finished rustlings and really appreciate the work everyone has done on it! 🎉 💯 )

@TheLarkInn
Copy link
Author

Also after reading #404, I think this could serve as the literature for updating the lesson.

@shadows-withal
Copy link
Member

Good point, there's a couple of issues relating to this exercise (or set of exercises now), so I'll look at it when I have time 👍

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

2 participants