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

Add get_key_value method #185

Closed
Rulexec opened this issue Nov 18, 2023 · 0 comments
Closed

Add get_key_value method #185

Rulexec opened this issue Nov 18, 2023 · 0 comments

Comments

@Rulexec
Copy link
Contributor

Rulexec commented Nov 18, 2023

HashMap has get_key_value method which is useful when keys of map is, for example Rc<[u8]> or other owned values, but you are quering map with borrowed value (&[u8]).

So you can query map, then make cheap key clone if you needed it somewhere else.

Rulexec added a commit to Rulexec/lru-rs that referenced this issue Nov 18, 2023
jeromefroe added a commit that referenced this issue Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants