[][src]Trait ironsea_index::IndexedDestructured

pub trait IndexedDestructured<F, K> {
    fn find(&self, key: &K) -> Vec<&F>;
fn find_range(&self, start: &K, end: &K) -> Vec<(K, &F)>; }

Methods provided by destructuring indices.

This kind of indices store inside the index both keys and values, meaning the original records can be freed.

Required methods

fn find(&self, key: &K) -> Vec<&F>

Retrieve all records matching the key.

fn find_range(&self, start: &K, end: &K) -> Vec<(K, &F)>

Retrieve all records matching in the key range defined by start and end.

  • start is included
Loading content...

Implementors

Loading content...