(ctx: &Ctx, k: &K)
| 73 | } |
| 74 | |
| 75 | fn compute_hash<Ctx, K>(ctx: &Ctx, k: &K) -> u32 |
| 76 | where |
| 77 | Ctx: CtxHash<K>, |
| 78 | { |
| 79 | let mut hasher = rustc_hash::FxHasher::default(); |
| 80 | ctx.ctx_hash(&mut hasher, k); |
| 81 | hasher.finish() as u32 |
| 82 | } |
| 83 | |
| 84 | impl<K, V> CtxHashMap<K, V> { |
| 85 | /// Insert a new key-value pair, returning the old value associated |