pub fn move_to_front_of_vec<T: Copy>(
    vec: Vec<T>,
    from_inclusive_index: usize
) -> Vec<T>
Expand description

Forcing the constraint of T: Copy ensures that we do not need to drop the discarded values (Copy is incompatible with Drop).