(obj: *mut PyObject)
| 215 | |
| 216 | #[inline] |
| 217 | pub unsafe fn PyIter_Check(obj: *mut PyObject) -> c_int { |
| 218 | let t = (*obj).ob_type; |
| 219 | (PyType_HasFeature(t, Py_TPFLAGS_HAVE_ITER) != 0 |
| 220 | && match (*t).tp_iternext { |
| 221 | None => false, |
| 222 | Some(f) => f as *const c_void != _PyObject_NextNotImplemented as *const c_void, |
| 223 | }) as c_int |
| 224 | } |
| 225 | |
| 226 | #[inline] |
| 227 | pub unsafe fn PyIndex_Check(obj: *mut PyObject) -> c_int { |
nothing calls this directly
no test coverage detected