const unsafe fn ptr_rotate_dispatch<T>(left: usize, mid: *mut T, right: usize)
Chooses between the three rotation algorithms. See the algorithm docs below.
The specified range must be valid for reading and writing.