slab
slab copied to clipboard
Feature request: partial drain
For my usecase I'd like to pop N elements, leaving them vacant. Currently Drain removes all entries. Is it possible to add a variant of drain which on each .next():
- returns by move stored element
- stores
Entry::Vacantin place
?