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