Function ptr_rotate
pub(in ::slice) const unsafe fn ptr_rotate<T>(left: usize, mid: *mut T, right: usize)
Rotates the range [mid-left, mid+right) such that the element at mid becomes the first
element. Equivalently, rotates the range left elements to the left or right elements to the
right.
Safety
The specified range must be valid for reading and writing.