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

Function PyMethod_GET_SELF

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

Source from the content-addressed store, hash-verified

108
109#[inline(always)]
110pub unsafe fn PyMethod_GET_SELF(meth: *mut PyObject) -> *mut PyObject {
111 (*(meth as *mut PyMethodObject)).im_self
112}
113
114#[inline(always)]
115pub unsafe fn PyMethod_GET_CLASS(meth: *mut PyObject) -> *mut PyObject {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected