unsafe fn slice_insert<T>(slice: &mut [MaybeUninit<T>], idx: usize, val: T)
Expand description

Inserts a value into a slice of initialized elements followed by one uninitialized element.

Safety

The slice has more than idx elements.