[][src]Trait fuzzy_trie::Collector

pub trait Collector<'a, T> {
    fn push(&mut self, distance: u8, value: &'a T);
}

Collector for searches

When trie makes a search it walks over the nodes and puts values that match the given key into collector

Required methods

fn push(&mut self, distance: u8, value: &'a T)

Called when trie found a value that matches the key

distance - Levenshtein distance from key used to insert value to search key

Loading content...

Implementations on Foreign Types

impl<'a, T> Collector<'a, T> for Vec<(u8, &'a T)>[src]

impl<'a, T> Collector<'a, T> for Vec<&'a T>[src]

impl<'a, T: Copy> Collector<'a, T> for Vec<T>[src]

Loading content...

Implementors

Loading content...