Since I can't find any other discussions since, has there been any developments on such a method?
If I'm to implement this functionality myself, am I safe to assume that the (unsafe) code from the 9 year old post "add vec insert slice at...", linked here is sound, and a good implementation (by your interpretation of "good")?
Unfortuantly this replaces the prior elements rather than shifting them to the positions after the insert length. My expected output would be something like the following:
let mut v = vec![1, 2, 3, 7, 8, 9];
let new = [4, 5, 6];
let u: Vec<_> = v.insert_slice(1, new).collect();
assert_eq!(v, &[1, 2, 3, 4, 5, 6, 7, 8, 9]);
My mistake. Thanks for the clarification. I will mark your answer as the correct one as it is the std approach, however I'm definitely going to benchmark it against paramagnetics approach.