Function nekolib_doc::corro::array_rotate_3
source · pub unsafe fn array_rotate_3<T, const N: usize>(
left: &mut [MaybeUninit<T>; N],
mid: &mut MaybeUninit<T>,
right: &mut [MaybeUninit<T>; N],
leftlen_old: usize,
rightlen_old: usize,
leftlen_new: usize,
) -> usize
Expand description
Rotate two arrays and one element.
§Safety
(left|right)len_(old|new) in 0..=N
,left[..leftlen_old]
is initialized,left[leftlen_old..]
is uninitialized,right[..rightlen_old]
is initialized,right[rightlen_old..]
is uninitialized, andmid
is initialized.