⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here
pub unsafe extern "C" fn getbuffer<T>(
    slf: *mut PyObject,
    arg1: *mut Py_buffer,
    arg2: c_int
) -> c_int where
    T: for<'p> PyBufferGetBufferProtocol<'p>, 
This is supported on crate feature pyproto and (non-Py_LIMITED_API or Py_3_11) only.