solana_accounts_db::secondary_index

Trait SecondaryIndexEntry

Source
pub trait SecondaryIndexEntry: Debug {
    // Required methods
    fn insert_if_not_exists(&self, key: &Pubkey, inner_keys_count: &AtomicU64);
    fn remove_inner_key(&self, key: &Pubkey) -> bool;
    fn is_empty(&self) -> bool;
    fn keys(&self) -> Vec<Pubkey>;
    fn len(&self) -> usize;
}

Required Methods§

Source

fn insert_if_not_exists(&self, key: &Pubkey, inner_keys_count: &AtomicU64)

Source

fn remove_inner_key(&self, key: &Pubkey) -> bool

Source

fn is_empty(&self) -> bool

Source

fn keys(&self) -> Vec<Pubkey>

Source

fn len(&self) -> usize

Implementors§