1use crate::Cfg;
2
3impl Cfg {
4 pub fn equivalent(&self, other: &Cfg) -> bool {
5 let mut eq = true;
6 for (i, j) in self.rules().zip(other.rules()) {
7 eq = eq && i.lhs == j.lhs && i.rhs.iter().zip(j.rhs.iter()).all(|(a, b)| *a == *b);
8 }
9 eq
10 }
11}