(&self, other: &Box<dyn DataType>)
| 33 | } |
| 34 | |
| 35 | fn equals(&self, other: &Box<dyn DataType>) -> bool { |
| 36 | if other.is_any() { |
| 37 | return true; |
| 38 | } |
| 39 | |
| 40 | let composite_type: Box<dyn DataType> = Box::new(self.clone()); |
| 41 | if other.is_variant_contains(&composite_type) { |
| 42 | return true; |
| 43 | } |
| 44 | |
| 45 | if let Some(other_composite) = other.as_any().downcast_ref::<CompositeType>() { |
| 46 | if self.name.ne(&other_composite.name) { |
| 47 | return false; |
| 48 | } |
| 49 | |
| 50 | return self.members.eq(&other_composite.members); |
| 51 | } |
| 52 | |
| 53 | false |
| 54 | } |
| 55 | |
| 56 | fn as_any(&self) -> &dyn Any { |
| 57 | self |
nothing calls this directly
no test coverage detected