MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyMethod_GET_FUNCTION

Function PyMethod_GET_FUNCTION

python27-sys/src/classobject.rs:105–107  ·  view source on GitHub ↗
(meth: *mut PyObject)

Source from the content-addressed store, hash-verified

103
104#[inline(always)]
105pub unsafe fn PyMethod_GET_FUNCTION(meth: *mut PyObject) -> *mut PyObject {
106 (*(meth as *mut PyMethodObject)).im_func
107}
108
109#[inline(always)]
110pub unsafe fn PyMethod_GET_SELF(meth: *mut PyObject) -> *mut PyObject {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected