Function ptr_rotate

Source
pub(super) const unsafe fn ptr_rotate<T>(left: usize, mid: *mut T, right: usize)
Expand description

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.