Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iter_mut() #161

Open
vi opened this issue Nov 29, 2022 · 0 comments
Open

iter_mut() #161

vi opened this issue Nov 29, 2022 · 0 comments

Comments

@vi
Copy link

vi commented Nov 29, 2022

There should be LruCache::iter_mut() and LruCache::peek_iter_mut.
Currently mutable iteration requires using shared one, collecting the keys and using get_mut repeatedly.

@vi vi added the enhancement label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant