feat: Introducing the Matches as_matches method

This commit is contained in:
Clément Renault
2019-01-06 11:23:42 +01:00
parent d21406a939
commit ef7ba96d4a
2 changed files with 6 additions and 2 deletions

View File

@ -71,6 +71,10 @@ impl Matches {
windows: self.slices.windows(2),
}
}
pub fn as_matches(&self) -> &[Match] {
&self.matches
}
}
pub struct QueryIndexGroups<'a, 'b> {