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<T> MaybeUninit<T> {
pub const fn array_assume_init<const N: usize>(array: [Self; N]) -> [T; N];
}
impl<T, const N: usize> MaybeUninit<[T; N]> {
pub const fn transpose(self) -> [MaybeUninit<T>; N];
}
impl<T, const N: usize> [MaybeUninit<T>; N] {
pub const fn transpose(self) -> MaybeUninit<[T; N]>;
}
Steps / History
Relevant Links
Unresolved Questions
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
Steps / History
MaybeUninitmethodsuninit_array,slice_get_ref,slice_get_mut#65580MaybeUninitmethodarray_assume_init#80600MaybeUninit::uninit_array()with inline const blocks. #125082Relevant Links
Unresolved Questions