mirror of
https://github.com/openai/codex.git
synced 2026-05-02 04:11:39 +03:00
adding is_match to Evaluation
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user