|
|
|
@ -172,8 +172,11 @@ impl<T> VecExt<T> for Vec<T>
|
|
|
|
|
(_, Some(bound)) | (bound, _) => self.reserve(bound),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let splice = self.split_off(location);
|
|
|
|
|
self.extend(slice.chain(splice.into_iter()));
|
|
|
|
|
self.splice(location..location, slice);
|
|
|
|
|
|
|
|
|
|
//let splice = self.split_off(location);
|
|
|
|
|
//self.extend(slice.chain(splice.into_iter()));
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
// shift everything across, replacing with the new values
|
|
|
|
|
let splice: Vec<_> = self.splice(location.., slice).collect();
|
|
|
|
|