Ask questionsTracking issue for HashMap::extract_if and HashSet::extract_if
The feature gate for the issue is
Currently only Vec and LinkedList have a drain_filter method, while other collections such as HashMap and HashSet do not.
This means that currently, removing items from a collection, and getting ownership of those items is fairly...unidiomatic and cumbersome.
For references, see https://github.com/rust-lang/rfcs/issues/2140
Answer questions the8472
Currently waiting for a hashbrown release so that
drain_filter can be replaced with
Related questionsNo questions were found.