pub fn insert(&self, k: K, v: V) -> Option<V>
    where
        K: Eq + Hash,
    {
        let v = self.inner.borrow_mut().insert(k, v);
        (self.update)();
        v
    }
/// Inserts a key-value pair into the map.
Inserts a key-value pair into the map.
Inserts a key - value pair into the map .
pub fn insert(&self, k: K, v: V) -> Option<V>
    where
        K: Eq + Hash,
    {
        let v = self.inner.borrow_mut().insert(k, v);
        (self.update)();
        v
    }
pub fn insert ( & self , k : K , v : V ) -> Option < V > where K : Eq + Hash , { let v = self . inner . borrow_mut ( ) . insert ( k , v ) ; ( self . update ) ( ) ; v }
Inserts a key-value pair into the map.
Inserts a key - value pair into the map .
&self
k
K
v
V
&self
k
K
v
V