(self)
| 172 | #[inline] |
| 173 | #[must_use] |
| 174 | pub fn steal_ptr(self) -> *mut ffi::PyObject { |
| 175 | let ptr = self.as_ptr(); |
| 176 | mem::forget(self); |
| 177 | ptr |
| 178 | } |
| 179 | |
| 180 | /// Transmutes an FFI pointer to `&PyObject`. |
| 181 | /// Undefined behavior if the pointer is NULL or invalid. |
no test coverage detected