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

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

Called when trie found a value that matches the key

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

Implementations on Foreign Types

Implementors