Support filtering

This commit is contained in:
Clément Renault 2025-07-01 16:24:02 +02:00
parent 5d2535032d
commit 08e096c985
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 58 additions and 5 deletions

View file

@ -130,6 +130,12 @@ pub enum PatternMatch {
NoMatch,
}
impl PatternMatch {
pub fn matches(&self) -> bool {
matches!(self, PatternMatch::Match)
}
}
#[cfg(test)]
mod tests {
use super::*;