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

missing AsMut<str> implementation for String #68741

Closed
tspiteri opened this issue Feb 1, 2020 · 2 comments · Fixed by #68742
Closed

missing AsMut<str> implementation for String #68741

tspiteri opened this issue Feb 1, 2020 · 2 comments · Fixed by #68742
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@tspiteri
Copy link
Contributor

tspiteri commented Feb 1, 2020

String has an inherent method as_mut_str, and implements both DerefMut and BorrowMut<str>. Is there a reason why it does not implement AsMut<str>, or was it just an oversight?

@jonas-schievink jonas-schievink added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Feb 1, 2020
@ExpHP
Copy link
Contributor

ExpHP commented Feb 2, 2020

It just goes to show how useless &mut str is that nobody was bothered by this until today. 😛

@estebank
Copy link
Contributor

estebank commented Feb 3, 2020

Tangentially related: #44695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants