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

Method as_ptr

src/objects/object.rs:166–168  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

164 /// Returns a borrowed pointer.
165 #[inline]
166 pub fn as_ptr(&self) -> *mut ffi::PyObject {
167 self.ptr.as_ptr()
168 }
169
170 /// Gets the underlying FFI pointer.
171 /// Consumes `self` without calling `Py_DECREF()`, thus returning an owned pointer.

Callers 15

addMethod · 0.45
subtractMethod · 0.45
multiplyMethod · 0.45
matrix_multiplyMethod · 0.45
power_moduloMethod · 0.45
true_divideMethod · 0.45
floor_divideMethod · 0.45
moduloMethod · 0.45
div_modMethod · 0.45
negativeMethod · 0.45
positiveMethod · 0.45
absoluteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected