Skip to content

missing AsMut<str> implementation for String #68741

Closed

Description

@tspiteri

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?

Activity

  1. added
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    T-libs-api[DEPRECATED; DO NOT USE]
    on Feb 1, 2020
  2. ExpHP commented on Feb 2, 2020

    @ExpHP
    Contributor

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

  3. estebank commented on Feb 3, 2020

    @estebank
    Contributor

    Tangentially related: #44695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions