We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&Q
&K
Change
pub fn get(&mut self, k: &K) -> Option<&V>
to
pub fn get<'a, Q>(&'a mut self, k: &Q) -> Option<&'a V> where KeyRef<K>: Borrow<Q>, Q: Hash + Eq + ?Sized,
like in SlruCache.
SlruCache
WTinyLfuCache was initially supposed to do that but I ran into some problems.
WTinyLfuCache
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Change
to
like in
SlruCache
.WTinyLfuCache
was initially supposed to do that but I ran into some problems.The text was updated successfully, but these errors were encountered: