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

Removes and returns a value from a slice of all initialized elements, leaving behind one trailing uninitialized element.

Safety

The slice has more than idx elements.