adding is_match to Evaluation

This commit is contained in:
kevin zhao
2025-11-11 19:25:53 -05:00
parent 755331425e
commit c086fe35a5

View File

@@ -19,6 +19,12 @@ pub enum Evaluation {
},
}
impl Evaluation {
pub fn is_match(&self) -> bool {
matches!(self, Self::Match { .. })
}
}
impl Policy {
pub fn new(rules_by_program: MultiMap<String, Rule>) -> Self {
Self { rules_by_program }