pyo3_ffi

Function PyFunction_Check

Source
pub unsafe fn PyFunction_Check(op: *mut PyObject) -> c_int
Available on non-Py_LIMITED_API and not (PyPy and non-Py_3_8) only.