/// Safely inserts a slice of data at an index;
Safely inserts a slice of data at an index.
Safely inserts a slice of data at an index .
pub fn insert_slice_at(&mut self, slice: &[T], mut index:usize){
        for elem in slice{
            self.insert(elem.clone(), index);
            index += 1;
        }
    }
pub fn insert_slice_at ( & mut self , slice : & [ T ] , mut index : usize ) { for elem in slice { self . insert ( elem . clone ( ) , index ) ; index += 1 ; } }
Safely inserts a slice of data at an index;
Safely inserts a slice of data at an index ;
&mut self
slice
&[T]
index
usize