Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ArrayVec::splice #201

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add ArrayVec::splice #201

wants to merge 6 commits into from

Conversation

Twixes
Copy link

@Twixes Twixes commented Oct 16, 2021

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.

@bluss bluss added this to the 0.8 milestone Oct 28, 2021
@Twixes
Copy link
Author

Twixes commented Oct 28, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants