Closed
Description
The .uninitialized()
method on ArrayBase
has some issues. For example, Array1::<bool>::uninitialized(2)
is undefined behavior.
Rust 1.36 added std::mem::MaybeUninit
for safer handling of uninitialized data. We should replace the existing .uninitialized()
method on ArrayBase
with one that returns an array of MaybeUninit
instances. We then need to add the necessary methods to cleanly work with arrays like this (e.g. an array-level equivalent of assume_init
).