(self)
| 1244 | impl PyObjectRef { |
| 1245 | #[inline(always)] |
| 1246 | pub const fn into_raw(self) -> NonNull<PyObject> { |
| 1247 | let ptr = self.ptr; |
| 1248 | core::mem::forget(self); |
| 1249 | ptr |
| 1250 | } |
| 1251 | |
| 1252 | /// # Safety |
| 1253 | /// The raw pointer must have been previously returned from a call to |