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
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.
The text was updated successfully, but these errors were encountered:
Rulexec
added a commit
to Rulexec/lru-rs
that referenced
this issue
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.
The text was updated successfully, but these errors were encountered: