Function slice_insert

Source
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.