pub trait OccurenceProvider<'a> {
type Iter: Iterator<Item = Occurence> + 'a;
// Required method
fn occurrences_of_word(&'a self, word: &'a str) -> Option<Self::Iter>;
}
pub trait OccurenceProvider<'a> {
type Iter: Iterator<Item = Occurence> + 'a;
// Required method
fn occurrences_of_word(&'a self, word: &'a str) -> Option<Self::Iter>;
}