You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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::Vacant in place
?
The text was updated successfully, but these errors were encountered:
I've recently created a fork of slab, that implements range iterators. With a few adaptions we could implement a draining iterator that accepts a range of items to be drained.
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()
:Entry::Vacant
in place?
The text was updated successfully, but these errors were encountered: