(&self, entry: &SearchEntry, token: &Phrase)
| 330 | } |
| 331 | |
| 332 | pub fn indexed_on(&self, entry: &SearchEntry, token: &Phrase) -> Result<bool> { |
| 333 | Ok(match &self.index.get(token) { |
| 334 | Some(matches) => matches.contains(entry), |
| 335 | None => false, |
| 336 | }) |
| 337 | } |
| 338 | |
| 339 | pub fn prefix_matches(&self, token: &Phrase) -> HashSet<SearchEntry> { |
| 340 | self.index.prefix_matches(token) |
no test coverage detected