Function swiss_army_knife::move_to_front_of_vec [−][src]
pub fn move_to_front_of_vec<T: Copy>(
vec: Vec<T>,
from_inclusive_index: usize
) -> Vec<T>
Forcing the constraint of T: Copy
ensures that we do not need to drop the discarded values (Copy is incompatible with Drop).