arrayvec icon indicating copy to clipboard operation
arrayvec copied to clipboard

Add `ArrayVec::splice`

Open Twixes opened this issue 4 years ago • 1 comments

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.

Twixes avatar Oct 16 '21 03:10 Twixes

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.

Twixes avatar Oct 28 '21 18:10 Twixes