-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for HashSet entry APIs #60896
Copy link
Copy link
Open
Labels
A-collectionsArea: `std::collections`Area: `std::collections`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
View all comments
Feature gate:
#![feature(hash_set_entry)]This is a tracking issue for
Entryand entry-like methods onHashSet.Public API
The
get_or_insert[_with]methods provide a simplification of theEntryAPI forHashSet, withnames chosen to match the similar methods on
Option. The fullEntryAPI mimics thatof
HashMap, though without methods for the map value (which is just()in a set).Steps / History
EntryAPI: Add Set entry API #120077Unresolved Questions
See also #133549 for
BTreeSet.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩