Index

Trait Index 

Source
pub trait Index {
    // Required methods
    fn insert(&mut self, key: &[u8], value: u64) -> Result<()>;
    fn find(&self, key: &[u8]) -> Result<Vec<u64>>;
    fn remove(&mut self, key: &[u8]) -> Result<bool>;
}
Expand description

Index trait (placeholder)

Required Methods§

Source

fn insert(&mut self, key: &[u8], value: u64) -> Result<()>

Insert a key into the index

Source

fn find(&self, key: &[u8]) -> Result<Vec<u64>>

Find entries matching the key

Source

fn remove(&mut self, key: &[u8]) -> Result<bool>

Remove a key from the index

Implementors§