Fast lookup for attribute existence on a class.
(&self, attr_name: &'static PyStrInterned)
| 1096 | |
| 1097 | /// Fast lookup for attribute existence on a class. |
| 1098 | pub fn has_attr(&self, attr_name: &'static PyStrInterned) -> bool { |
| 1099 | self.has_name_in_mro(attr_name) |
| 1100 | } |
| 1101 | |
| 1102 | /// Check if attribute exists in MRO, using method cache for fast check. |
| 1103 | /// Unlike find_name_in_mro, avoids cloning the value on cache hit. |
no test coverage detected