pyo3::ffi

Function PyCapsule_SetDestructor

Source
pub unsafe extern "C" fn PyCapsule_SetDestructor(
    capsule: *mut PyObject,
    destructor: Option<unsafe extern "C" fn(_: *mut PyObject)>,
) -> i32
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here