Function getrandom::util::slice_as_uninit_mut

source ยท
pub unsafe fn slice_as_uninit_mut<T>(slice: &mut [T]) -> &mut [MaybeUninit<T>]
Expand description

View an mutable initialized array as potentially-uninitialized.

This is unsafe because it allows assigning uninitialized values into slice, which would be undefined behavior.