pub fn remove_if_slot_list_empty(&mut self, pubkey: Pubkey) -> bool {
        if let Entry::Occupied(index_entry) = self.map.entry(pubkey) {
            if index_entry.get().slot_list.read().unwrap().is_empty() {
                index_entry.remove();
                return true;
            }
        }
        false
    }
// If the slot list for pubkey exists in the index and is empty, remove the index entry for pubkey and return true.
// Return false otherwise.
If the slot list for pubkey exists in the index and is empty, remove the index entry for pubkey and return true.
Return false otherwise.
If the slot list for pubkey exists in the index and is empty remove the index entry for pubkey and return true . Return false otherwise .
pub fn remove_if_slot_list_empty(&mut self, pubkey: Pubkey) -> bool {
        if let Entry::Occupied(index_entry) = self.map.entry(pubkey) {
            if index_entry.get().slot_list.read().unwrap().is_empty() {
                index_entry.remove();
                return true;
            }
        }
        false
    }
pub fn remove_if_slot_list_empty ( & mut self , pubkey : Pubkey ) -> bool { if let Entry :: Occupied ( index_entry ) = self . map . entry ( pubkey ) { if index_entry . get ( ) . slot_list . read ( ) . unwrap ( ) . is_empty ( ) { index_entry . remove ( ) ; return true ; } } false }
If the slot list for pubkey exists in the index and is empty, remove the index entry for pubkey and return true.
If the slot list for pubkey exists in the index and is empty remove the index entry for pubkey and return true .
&mut self
pubkey
Pubkey