// Replaces or inserts the given item.
Replaces or inserts the given item.
Replaces or inserts the given item .
async fn replace_or_insert(&self, item: Item<K, V>) {
        let mut iter = SkipListLayerIterMut::new(self, Bound::Included(&item.key)).await;
        if let Some(found_item) = iter.get() {
            if found_item.key == &item.key {
                iter.erase();
            }
        }
        iter.insert(item);
        iter.commit().await;
    }
async fn replace_or_insert ( & self , item : Item < K , V > ) { let mut iter = SkipListLayerIterMut :: new ( self , Bound :: Included ( & item . key ) ) . await ; if let Some ( found_item ) = iter . get ( ) { if found_item . key == & item . key { iter . erase ( ) ; } } iter . insert ( item ) ; iter . commit ( ) . await ; }
Replaces or inserts the given item.
Replaces or inserts the given item .
&self
item
Item<K, V>