(obj: *mut PyObject)
| 225 | |
| 226 | #[inline] |
| 227 | pub unsafe fn PyIndex_Check(obj: *mut PyObject) -> c_int { |
| 228 | let t = (*obj).ob_type; |
| 229 | let n = (*t).tp_as_number; |
| 230 | (!n.is_null() && PyType_HasFeature(t, Py_TPFLAGS_HAVE_INDEX) != 0 && (*n).nb_index.is_some()) |
| 231 | as c_int |
| 232 | } |
| 233 | |
| 234 | #[inline] |
| 235 | pub unsafe fn PySequence_Fast_GET_SIZE(o: *mut PyObject) -> Py_ssize_t { |
nothing calls this directly
no test coverage detected