// filter any rooted entries and return them along with a bool that indicates
// if this account has no more entries.
filter any rooted entries and return them along with a bool that indicates
if this account has no more entries.
filter any rooted entries and return them along with a bool that indicates if this account has no more entries .
pub fn purge(&self, pubkey: &Pubkey) -> (SlotList<T>, bool) {
        let list = &mut self.account_maps.get(&pubkey).unwrap().1.write().unwrap();
        let reclaims = self.get_rooted_entries(&list);
        list.retain(|(slot, _)| !self.is_root(*slot));
        (reclaims, list.is_empty())
    }
pub fn purge ( & self , pubkey : & Pubkey ) -> ( SlotList < T > , bool ) { let list = & mut self . account_maps . get ( & pubkey ) . unwrap ( ) . 1 . write ( ) . unwrap ( ) ; let reclaims = self . get_rooted_entries ( & list ) ; list . retain ( | ( slot , _ ) | ! self . is_root ( * slot ) ) ; ( reclaims , list . is_empty ( ) ) }
filter any rooted entries and return them along with a bool that indicates
if this account has no more entries.
filter any rooted entries and return them along with a bool that indicates if this account has no more entries .
&self
pubkey
&Pubkey