The Hashtable Problem: A Litmus Test for External Impl Proposals
Rust Internals [Unofficial]
June 18, 2026
ais523:
Hashis a safe trait, so nothing forcesK: Hashand&K: Hashto have any relationship to each other, but it is possible to add keys to a hash asKand then retrieve them using an&K;
Doesn't really make a difference, but this isn't true. The standard library itself provides
impl<T> Hash for &T
where
T: Hash + ?Sized,
So nobody else can provide different impls for K and &K, that would conflict.
Discussion in the ATmosphere