Add LinkedList::{retain,retain_mut} #250
Labels
ACP-accepted
API Change Proposal is accepted (seconded with no objections)
api-change-proposal
A proposal to add or alter unstable APIs in the standard libraries
T-libs-api
Proposal
Problem statement
It would be convenient if LinkedList had retain/retain_mut methods just like many other collections. We can migrate between different collections easily.
Motivating examples or use cases
When implementing MVCC transactions in database, it's very common to store the active transactions as a list. They'll be garbage collected by a monotonic version.
In fact, there are similar use cases like other collections.
Solution sketch
Alternatives
Links and related work
Vec::retain
Vec::retain_mut
The text was updated successfully, but these errors were encountered: