pub fn mut_slice_as_maybeuninit<T>(buffer: &mut [T]) -> &mut [MaybeUninit<T>]Expand description
Convert a &mut [T] to a &mut [MaybeUninit<T>].
This is a safe operation, but as of June 2026, there is no safe API in the standard library to do this. So, we provide our own.