pub unsafe extern "C" fn releasebufferproc<Meth: MethodDef<Func>>(
slf: *mut PyObject,
buf: *mut Py_buffer,
)Available on
Py_3_11 or non-Py_LIMITED_API only.Expand description
Releasebufferproc is a special case where the function cannot return an error, so we use trampoline_unraisable.
§Safety
- It must be sound to call the method with slf and buf
- Interpreter must be attached