(o: *mut PyObject)
| 55 | /// Test if an object has a GC head |
| 56 | #[inline(always)] |
| 57 | pub unsafe fn PyObject_IS_GC(o: *mut PyObject) -> c_int { |
| 58 | (PyType_IS_GC(Py_TYPE(o)) != 0 |
| 59 | && match (*Py_TYPE(o)).tp_is_gc { |
| 60 | Some(tp_is_gc) => tp_is_gc(o) != 0, |
| 61 | None => true, |
| 62 | }) as c_int |
| 63 | } |
| 64 | |
| 65 | /* Test if a type supports weak references */ |
| 66 | #[inline(always)] |
nothing calls this directly
no test coverage detected