[][src]Trait scanmut::InsertSliceClone

pub trait InsertSliceClone<T: Clone>: ScanMut<T> {
    pub fn insert_slice_clone(&mut self, index: usize, slice: &[T]);
}

ScanMut extension trait for Vecs with cloneable items.

Required methods

pub fn insert_slice_clone(&mut self, index: usize, slice: &[T])[src]

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 this Vec.
Loading content...

Implementations on Foreign Types

impl<T: Clone> InsertSliceClone<T> for Vec<T>[src]

Loading content...

Implementors

Loading content...