Tracking Issue for MaybeUninit methods for arrays · Issue #96097 · rust-lang/rust (original) (raw)

This is a meta-tracking issue for multiple APIs that are linked across multiple issues. Right now it only includes two methods, but since there seems to be a desire to add more, this issue can be used as a placeholder for those discussions until those methods are added.

Public API

impl MaybeUninit { pub const fn array_assume_init(array: [Self; N]) -> [T; N]; }

impl<T, const N: usize> MaybeUninit<[T; N]> { pub const fn transpose(self) -> [MaybeUninit; N]; }

impl<T, const N: usize> [MaybeUninit; N] { pub const fn transpose(self) -> MaybeUninit<[T; N]>; }

Steps / History

Unresolved Questions