Open
Description
Feature gate: #![feature(box_uninit_write)]
Split-out from #63291 as a result of stabilizing most of its API! It's a way to write to the MaybeUninit on the Box and thus initialize it!
Public API
impl<T, A> Box<MaybeUninit<T>, A> {
pub fn write(mut boxed: Self, value: T) -> Box<T, A>;
}
Steps / History
- Implementation: #...
- honestly have no idea
- related API was added in Tracking issue for uninitialized constructors for Box, Rc, Arc #63291
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- idk lol