Hashmap Entry Insert

September 2020 — February 2022


Someone in the community discord wanted a feature and I was like “hey, why not try to implement it, that could be fun” (based on an existing but obsoleted PR).

impl<'a, K, V> Entry<'a, K, V> {
    pub fn insert(self, value: V) -> OccupiedEntry<'a, K, V> {…}



Currently implemented behind the #![feature(entry_insert)] flag, but getting redesigned. I have checked out of it and am no longer interested nor involved.