pub unsafe fn cast_uninit_to_init_slice<U>(uninit: &[MaybeUninit<U>]) -> &[U]Expand description
Cast a possibly uninitialized slice of bytes, into an initializied slice, assuming that it is initialized.
ยงSafety
The initialization variant must be upheld; that is, the caller must ensure that the buffer cannot contain any uninitialized data.