Skip to main content

duplicate_after

Function duplicate_after 

pub fn duplicate_after<T>(v: &mut Vec<T>, index: usize)
where T: Clone,
Expand description

Insert a clone of the item at index immediately after it. A no-op when index is out of range.