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

Method to remove values from Punctuated #1314

Open
dtolnay opened this issue Jan 23, 2023 · 1 comment
Open

Method to remove values from Punctuated #1314

dtolnay opened this issue Jan 23, 2023 · 1 comment

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jan 23, 2023

The only current APIs on syn::punctuated::Punctuated that result in the Punctuated becoming smaller are pop (remove last) and clear (remove all).

#343 (comment) mentioned needing to remove by index.

@Caellian
Copy link

drain_filter removes Clone requirement for processed data and halves number of loops for use cases such as specializing generic arguments. 🥺

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

No branches or pull requests

2 participants