pub trait OccurenceProvider<'a> {
    type Iter: Iterator<Item = Occurence> + 'a;

    // Required method
    fn occurrences_of_word(&'a self, word: &'a str) -> Option<Self::Iter>;
}

Required Associated Types§

source

type Iter: Iterator<Item = Occurence> + 'a

Required Methods§

source

fn occurrences_of_word(&'a self, word: &'a str) -> Option<Self::Iter>

word_count_limit is the limit where only words starting with the first char of word will be checked for proximity.

Implementors§

source§

impl<'a> OccurenceProvider<'a> for LosslessOccurrences<'a>

§

type Iter = LosslessOccurrencesIter<'a, Box<dyn Iterator<Item = (&'a Vec<usize>, Id, f32)> + 'a>>

source§

impl<'a> OccurenceProvider<'a> for SimpleOccurences<'a>

§

type Iter = SimpleOccurrencesIter<'a, Box<dyn Iterator<Item = (Id, &'a Alphanumeral<StrPtr>, f32)> + 'a>>