syn icon indicating copy to clipboard operation
syn copied to clipboard

Method to remove values from Punctuated

Open dtolnay opened this issue 2 years ago • 1 comments

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

https://github.com/dtolnay/syn/issues/343#issuecomment-657923539 mentioned needing to remove by index.

dtolnay avatar Jan 23 '23 01:01 dtolnay

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

Caellian avatar Sep 28 '23 00:09 Caellian