(zelf: &Py<Self>, vm: &VirtualMachine)
| 359 | } |
| 360 | |
| 361 | fn generate_hash(zelf: &Py<Self>, vm: &VirtualMachine) -> PyHash { |
| 362 | let name_hash = vm.state.hash_secret.hash_str(&zelf.name); |
| 363 | let pointer_hash = crate::common::hash::hash_pointer(zelf.as_object().get_id()); |
| 364 | pointer_hash ^ name_hash |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | #[pyclass(with(Constructor, Hashable, Representable))] |
nothing calls this directly
no test coverage detected