Skip to main content

luaur_analysis/methods/
missing_union_property_operator_eq.rs

1use crate::records::missing_union_property::MissingUnionProperty;
2
3impl MissingUnionProperty {
4    #[inline]
5    pub fn operator_eq(&self, rhs: &MissingUnionProperty) -> bool {
6        if self.missing.len() != rhs.missing.len() {
7            return false;
8        }
9
10        for i in 0..self.missing.len() {
11            if self.missing[i] != rhs.missing[i] {
12                return false;
13            }
14        }
15
16        self.r#type == rhs.r#type && self.key == rhs.key
17    }
18}