Explorar o código

Derive Eq and PartialEq for StatementTree

Ian Goldberg hai 4 meses
pai
achega
11006442d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sigma_compiler_core/src/sigma/combiners.rs

+ 1 - 1
sigma_compiler_core/src/sigma/combiners.rs

@@ -57,7 +57,7 @@ impl<'a> Visit<'a> for PrivScalarMap<'a> {
 /// one of its children is true.  A `Thresh` node (with threshold `k`) is
 /// true if at least `k` of its children are true.
 
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Eq, PartialEq)]
 pub enum StatementTree {
     Leaf(Expr),
     And(Vec<StatementTree>),