-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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.
Description
Feature gate: #![feature(box_take)]
This is a tracking issue for Box::take
, which adds the ability to move the value out of a Box
without consuming its allocation.
Public API
impl<T> Box<T> {
pub fn take(boxed: Box<T>) -> (T, Box<MaybeUninit<T>>);
}
Steps / History
(Remember to update the S-tracking-*
label when checking boxes.)
- ACP:
Box::take
for taking the value out of a box without deallocating it libs-team#663 - Implementation: implement
Box::take
#147227 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Is
take
the right name?Box::take
for taking the value out of a box without deallocating it libs-team#663 (comment)
Footnotes
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.