[][src]Trait ironsea_index::Indexed

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

Methods provided by indices.

This kind of indices can work on references to the original vector or take ownership of the records, based on the type given for the records.

Required methods

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

Retrieve all records matching the key.

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

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

  • start is included
Loading content...

Implementors

Loading content...