Skip to content

Add ArrayVec::pop_if() - #319

Open
ronnodas wants to merge 2 commits into
bluss:masterfrom
ronnodas:pop-if
Open

Add ArrayVec::pop_if()#319
ronnodas wants to merge 2 commits into
bluss:masterfrom
ronnodas:pop-if

Conversation

@ronnodas

Copy link
Copy Markdown

Closes #309.

The implementation is essentially the same as pop(), with the len() > 0 check replaced by the predicate. I was not sure why pop() is indirected through ArrayVecImpl, so I just added this as an inherent method.

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.

Add ArrayVec::pop_if

1 participant