-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for map_many_mut #97601
Copy link
Copy link
Closed
Labels
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 RFCT-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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Milestone
Metadata
Metadata
Assignees
Labels
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 RFCT-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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(map_many_mut)]This is a tracking issue for the
HashMap::get_disjoint{,_unchecked}_mutfunctions (previouslyget_many_mutandget_many_unchecked_mut).Attempts to get mutable references to
Nvalues in the map at once.Public API
Steps / History
get_many_mutandget_many_unchecked_mutto HashMap #94647 and Change signature ofget_many_mutAPIs hashbrown#562get_disjoint_mutStabilizemap_many_mutfeature #136152map_many_mutfeature #136152Unresolved Questions
Should the return type be insteadResult<[Option<&mut V>; N], DuplicateKeys>? Tracking Issue for map_many_mut #97601 (comment) and Tracking Issue for map_many_mut #97601 (comment)Tracking Issue for map_many_mut #97601 (comment)
Having instead a entry-like API? Tracking Issue for map_many_mut #97601 (comment)Tracking Issue for map_many_mut #97601 (comment)
Namingmap_disjoint_mut, see Tracking Issue for map_many_mut #97601 (comment)