// Erases the given item. Does nothing if the item doesn't exist.
Erases the given item. Does nothing if the item doesn't exist.
Erases the given item . Does nothing if the item doesn ' t exist .
pub async fn erase(&self, item: ItemRef<'_, K, V>)
    where
        K: std::cmp::Eq,
    {
        let mut iter = SkipListLayerIterMut::new(self, Bound::Included(&item.key)).await;
        if let Some(ItemRef { key, .. }) = iter.get() {
            if key == item.key {
                iter.erase();
                iter.commit().await;
            }
        }
    }
pub async fn erase ( & self , item : ItemRef < ' _ , K , V > ) where K : std :: cmp :: Eq , { let mut iter = SkipListLayerIterMut :: new ( self , Bound :: Included ( & item . key ) ) . await ; if let Some ( ItemRef { key , .. } ) = iter . get ( ) { if key == item . key { iter . erase ( ) ; iter . commit ( ) . await ; } } }
Erases the given item.
Erases the given item .
&self
item
ItemRef<'_, K, V>