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

Implement traits for &mut T #133

Merged
merged 1 commit into from
Jul 16, 2023
Merged

Implement traits for &mut T #133

merged 1 commit into from
Jul 16, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Jul 16, 2023

As the traits are implemented for &T where T implements the traits, I'm not sure why they can't also be implemented for &mut T.

@Lokathor
Copy link
Contributor

They definitely can be. I suspect this wasn't done because of how rarely you'd have a &mut T on them and how that would coerce into &T anyway, but sometimes coercion doesn't kick in right so we might as well have these impls

@Lokathor Lokathor merged commit 64d2269 into master Jul 16, 2023
@notgull notgull deleted the notgull/mutref branch July 16, 2023 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants