Tracking Issue for maybe_uninit_array_assume_initย #80908
Closed
Description
opened on Jan 11, 2021
Feature gate: #![feature(maybe_uninit_array_assume_init)]
This is a tracking issue for MaybeUninit::array_assume_init
.
Public API
// core::mem::maybe_uninit
impl<T> MaybeUninit<T> {
pub unsafe fn array_assume_init<const N: usize>(array: [Self; N]) -> [T; N];
}
Steps / History
- Implementation: Add
MaybeUninit
methodarray_assume_init
ย #80600 - Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- Should this be a const function?
- Should this be a method of array?
- Should this method be replaced by a conversion method from
[MaybeUninit<T>; N]
toMaybeUninit<[T; N]>
(see comment).
Activity