Function ptr_rotate

Source
pub(super) 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.