MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / release_ref

Method release_ref

src/python.rs:132–137  ·  view source on GitHub ↗
(self, _py: Python)

Source from the content-addressed store, hash-verified

130{
131 #[inline]
132 fn release_ref(self, _py: Python) {
133 let ptr = self.into_object().steal_ptr();
134 unsafe {
135 ffi::Py_DECREF(ptr);
136 }
137 }
138}
139
140impl<T> PyDrop for Option<T>

Callers

nothing calls this directly

Calls 3

Py_DECREFFunction · 0.50
steal_ptrMethod · 0.45
into_objectMethod · 0.45

Tested by

no test coverage detected