You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEAT: Rename maybe_uninit to Array::uninit and move to base type
Old type situation: `Array<MaybeUninit<i32>, D>::maybe_uninit()`
New type situation: `Array<i32, D>::uninit()`
The link between the regular array storage type and the maybeuninit
version of it is made explicit in the DataOwned trait and this makes
it much easier to work with this constructor in generic code.
The new name is "uninit", just like many types in std (likej
`Box::uninit`).
The old name is deprecated. Because of the unfortunate generics
situation of the old name, the implementation is a copy & paste (short
allegory - inside ArrayBase::uninit we have types S and S::MaybeUninit
"available" as known type, inside ArrayBase::maybe_uninit we only have a
`DataOwned<Elem = MaybeUninit<_>>` type "avaialable" and no way to find the
corresponding "plain" storage type.)
0 commit comments