Trait sourmash::index::Index[][src]

pub trait Index<'a> {
    type Item: Comparable<Self::Item>;
    fn insert(&mut self, node: Self::Item) -> Result<(), Error>;
fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>;
fn load<P: AsRef<Path>>(path: P) -> Result<(), Error>;
fn signatures(&self) -> Vec<Self::Item>;
fn signature_refs(&self) -> Vec<&Self::Item>; fn find<F>(
        &self,
        search_fn: F,
        sig: &Self::Item,
        threshold: f64
    ) -> Result<Vec<&Self::Item>, Error>
    where
        F: Fn(&dyn Comparable<Self::Item>, &Self::Item, f64) -> bool
, { ... }
fn search(
        &self,
        sig: &Self::Item,
        threshold: f64,
        containment: bool
    ) -> Result<Vec<&Self::Item>, Error> { ... }
fn batch_insert(&mut self, nodes: Vec<Self::Item>) -> Result<(), Error> { ... } }

Associated Types

Required methods

Provided methods

Implementors