We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Basically just
pub fn get_both<Q: ?Sized>(&self, k: &Q) -> Option<(&K,&V)> where K: Borrow<Q>, Q: Hash + Eq { self.search(k).into_occupied_bucket().map(|bucket| bucket.into_refs()) }
sometimes you need a reference to a key with the lifetime of the collection.