(&self)
| 1918 | /// Get a `&PyObject` reference. Works for both owned and borrowed. |
| 1919 | #[inline(always)] |
| 1920 | pub fn as_object(&self) -> &PyObject { |
| 1921 | unsafe { &*((self.bits.get() & !STACKREF_BORROW_TAG) as *const PyObject) } |
| 1922 | } |
| 1923 | |
| 1924 | /// Convert to an owned `PyObjectRef`. |
| 1925 | /// |
no test coverage detected