arrayvec
arrayvec copied to clipboard
Add `ArrayVec::splice`
One thing I need that I'm missing from this nice crate is the ability to overwrite a specific segment of an ArrayVec with a provided iterable. This is possible with (std::vec::) Vec::splice, so this PR basically ports that to ArrayVec. Likely this port is not optimal (but it does work in all tested cases), so any advice on further adjustments appreciated.
Oops, tests were failing because they depended on std::array::IntoIter iterating by value, but that possibility was added in 1.53 and doesn't work on 1.51 that CI is using. Should be fixed now.