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 APIimpl<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
MaybeUninit
methods uninit_array
, slice_get_ref
, slice_get_mut
#65580MaybeUninit
method array_assume_init
#80600MaybeUninit::uninit_array()
with inline const blocks. #125082MaybeUninit::uninit_array::<LEN>()
be stabilised if it can be replaced by [const { MaybeUninit::uninit() }; LEN]
?
fcp close
to remove that: Tracking Issue for MaybeUninit methods for arrays #96097 (comment)array_assume_init
the right pattern, or should we convert from [MaybeUninit<T>, N]
back to MaybeUninit<[T; N]>
first?elichai, TimLuq, briansmith, smasher164, orzogc and 14 moreelichai, Paval-from-Belarus, botahamec, bjoernager, JulianSchmid and 2 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4