Function array_insertion::array_splice

source ·
pub unsafe fn array_splice<T, const N: usize>(
    dst: &mut [MaybeUninit<T>; N],
    i: usize,
    dst_len: usize,
    src: &[MaybeUninit<T>; N],
    src_len: usize,
)
Expand description

Insert elements into the array from the other array.

§Safety

  • dst[..dst_len] is initialized,
  • dst[dst_len..] is uninitialized,
  • src[..src_len] is initialized,
  • dst_len + src_len <= N, and
  • i <= dst_len.