rust/compiler/rustc_data_structures/src/sso
Yuki Okushi 0765536c0b
Rollup merge of #78083 - ChaiTRex:master, r=m-ou-se
Stabilize or_insert_with_key

Stabilizes the `or_insert_with_key` feature from https://github.com/rust-lang/rust/issues/71024. This allows inserting key-derived values when a `HashMap`/`BTreeMap` entry is vacant.

The difference between this and  `.or_insert_with(|| ... )` is that this provides a reference to the key to the closure after it is moved with `.entry(key_being_moved)`, avoiding the need to copy or clone the key.
2020-12-19 15:15:57 +09:00
..
either_iter.rs SsoHashSet reimplemented as a wrapper on top of SsoHashMap 2020-09-26 18:42:26 -05:00
map.rs Rollup merge of #78083 - ChaiTRex:master, r=m-ou-se 2020-12-19 15:15:57 +09:00
mod.rs SsoHashSet reimplemented as a wrapper on top of SsoHashMap 2020-09-26 18:42:26 -05:00
set.rs SsoHashSet/Map - genericiy over Q removed 2020-10-02 20:13:23 -05:00