We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.