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