Tracking Issue for box_uninit_write · Issue #129397 · rust-lang/rust (original) (raw)

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, A> { pub fn write(mut boxed: Self, value: T) -> Box<T, A>; }

Steps / History

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html