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
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
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> {