pub const unsafe fn slice_assume_init_ref<T>(slice: &[MaybeUninit<T>]) -> &[T]
Expand description
This can be removed when MaybeUninit::slice_assume_init_ref is stabilized https://github.com/rust-lang/rust/issues/63569
ยงSafety
It is up to the caller to guarantee that the MaybeUninit<T>
elements
really are in an initialized state.
Calling this when the content is not yet fully initialized causes undefined behavior.
See assume_init_ref
for more details and examples.