-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for Vec::split_at_spare_mut #81944
Copy link
Copy link
Open
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.
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(vec_split_at_spare)]This is a tracking issue for
Vec::split_at_spare_mut, which is used as the basis for a few methods internally to give a slice pointing to the initialized portion of theVecand a slice ofMaybeUninitpointing to the uninitialized portion.Public API
Steps / History
Unresolved Questions
split_at_spare_mutdoesn't seem like an intuitive nameVec::spare_capacity_mut? Any usecase ofVec::spare_capacity_mutcan be replaced withVec::split_at_spare_mut(but not vise-versa):edit:
spare_capacity_muthas been stabilised now in Stabilize vec_spare_capacity #93016 so deprecating it is probably not an option