Support filtering

This commit is contained in:
Clément Renault
2025-07-01 16:24:02 +02:00
committed by Kerollmops
parent 34f2ab7093
commit e654f66223
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::*;