pub fn remove_expected(&mut self, expected: &Expected) {
        self.constraints[self.level].1 = self.constraints[self.level]
            .1
            .clone()
            .drain_filter(|con| {
                !con.parent.expect.structurally_eq(&expected.expect)
                    && !con.child.expect.structurally_eq(&expected.expect)
            })
            .collect()
    }
/// Remove all constraints with where either parent or child is expected
Remove all constraints with where either parent or child is expected
Remove all constraints with where either parent or child is expected
pub fn remove_expected(&mut self, expected: &Expected) {
        self.constraints[self.level].1 = self.constraints[self.level]
            .1
            .clone()
            .drain_filter(|con| {
                !con.parent.expect.structurally_eq(&expected.expect)
                    && !con.child.expect.structurally_eq(&expected.expect)
            })
            .collect()
    }
pub fn remove_expected ( & mut self , expected : & Expected ) { self . constraints [ self . level ] . 1 = self . constraints [ self . level ] . 1 . clone ( ) . drain_filter ( | con | { ! con . parent . expect . structurally_eq ( & expected . expect ) && ! con . child . expect . structurally_eq ( & expected . expect ) } ) . collect ( ) }
Remove all constraints with where either parent or child is expected
Remove all constraints with where either parent or child is expected
&mut self
expected
&Expected