Skip to main content

SearchIndex

Trait SearchIndex 

Source
pub trait SearchIndex<K: Key> {
    // Required methods
    fn find_exact(&self, key: K) -> Result<Vec<u64>>;
    fn find_range(&self, start: Option<K>, end: Option<K>) -> Result<Vec<u64>>;
}
Expand description

Core trait for index searching capabilities

Required Methods§

Source

fn find_exact(&self, key: K) -> Result<Vec<u64>>

Find exact matches for a key

Source

fn find_range(&self, start: Option<K>, end: Option<K>) -> Result<Vec<u64>>

Find matches within a range (inclusive start, inclusive end)

Implementors§