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.)
Unresolved Questions
Feature gate:
#![feature(box_take)]This is a tracking issue for
Box::take, which adds the ability to move the value out of aBoxwithout consuming its allocation.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Box::takefor taking the value out of a box without deallocating it libs-team#663Box::take#147227Unresolved Questions
Istakethe right name?Box::takefor taking the value out of a box without deallocating it libs-team#663 (comment)Box::take#147212 (comment)?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩