Skip to content

Add methods exposing keys of BTreeMap and HashMap entries #32281

Closed

Description

@dstu

As discussed in rfcs, it would make sense to add a keys() method to the Entry variants for both map types.

PR 32248 has code and tests.

Activity

  1. frewsxcv commented on Mar 19, 2016

    @frewsxcv
    Contributor

    Was this completed in #32248?

  2. apasel422 commented on Mar 19, 2016

    @apasel422
    Contributor

    @frewsxcv Yes. We'll keep it open as the tracking issue.

  3. added
    B-unstable
    on Mar 19, 2016
  4. added
    T-libs-api
    on Mar 19, 2016
  5. sgrif commented on Apr 17, 2016

    @sgrif
    Contributor

    Had a use case for this in Diesel this morning. (Code comparison: https://gist.github.com/sgrif/68cbba9a87084da3a2e8c42a12e7d6cf). Worked great, and was exactly the missing piece. Looking forward to seeing this stabilized.

  6. sfackler commented on Apr 21, 2016

    @sfackler
    Member

    I just noticed that while this is on both OccupiedEntry and VacantEntry, the convenience impl on Entry is missing.

  7. seanmonstar commented on Apr 21, 2016

    @seanmonstar
    Contributor

    If I wanted to propose a fn take(self) -> (K, V), would it be fine to tag along with this issue, or should that require its own RFC?

  8. sfackler commented on Apr 21, 2016

    @sfackler
    Member

    I think it'd be more associated with the key recovery tracking issue, but that's already landed. In any case, I don't think an RFC would be required - it can piggy back off of the existing key recovery one.

  9. sfackler commented on Apr 21, 2016

    @sfackler
    Member
  10. added a commit that references this issue on Apr 22, 2016
  11. alexcrichton commented on Apr 29, 2016

    @alexcrichton
    Member

    🔔 This issue is now entering its cycle-long final comment period for stabilization 🔔

    (including #33148)

  12. added
    final-comment-period
    and removed on Apr 29, 2016
  13. added a commit that references this issue on Apr 30, 2016
  14. 7 remaining items

  15. added a commit that references this issue on May 24, 2016
    cae91d7
  16. added a commit that references this issue on May 26, 2016
    a2141e2
  17. added a commit that references this issue on Jun 15, 2016
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

    B-unstableT-libs-apifinal-comment-period

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions