pub trait InsertSliceCopy<T: Copy>: InsertSliceClone<T> {
// Required method
fn insert_slice_copy(&mut self, index: usize, slice: &[T]);
}
Expand description
ScanMut extension trait for Vec
s with copyable items.
Required Methods§
Sourcefn insert_slice_copy(&mut self, index: usize, slice: &[T])
fn insert_slice_copy(&mut self, index: usize, slice: &[T])
Inserts items from a slice at the given index by copying 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.