pub fn copy_over<T: Copy>(
slice: &mut [T],
src_idx: usize,
dest_idx: usize,
len: usize,
)Expand description
Copy len elements from src_idx to dest_idx. Ranges may overlap.
Safe wrapper for memmove()/std::ptr::copy().
###Panics
- If either
src_idxordest_idxare out of bounds, or if either of these pluslenis out of bounds. - If
src_idx + lenordest_idx + lenoverflows.