pub trait InsertSliceClone<T: Clone>: ScanMut<T> {
// Required method
fn insert_slice_clone(&mut self, index: usize, slice: &[T]);
}Expand description
ScanMut extension trait for Vecs with cloneable items.
Required Methods§
Sourcefn insert_slice_clone(&mut self, index: usize, slice: &[T])
fn insert_slice_clone(&mut self, index: usize, slice: &[T])
Inserts items from a slice at the given index by cloning elements.
§Panics
Panics if
- The range
index..(index + slice.len())is out of bounds for thisVec.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.