pub(crate) trait ShrinkCollectRefs<'a>: Sync + Send {
    // Required methods
    fn with_capacity(capacity: usize, slot: Slot) -> Self;
    fn collect(&mut self, other: Self);
    fn add(&mut self, ref_count: u64, account: &'a StoredAccountMeta<'a>);
    fn len(&self) -> usize;
    fn alive_bytes(&self) -> usize;
    fn alive_accounts(&self) -> &Vec<&'a StoredAccountMeta<'a>>;
}

Required Methods§

source

fn with_capacity(capacity: usize, slot: Slot) -> Self

source

fn collect(&mut self, other: Self)

source

fn add(&mut self, ref_count: u64, account: &'a StoredAccountMeta<'a>)

source

fn len(&self) -> usize

source

fn alive_bytes(&self) -> usize

source

fn alive_accounts(&self) -> &Vec<&'a StoredAccountMeta<'a>>

Implementors§