This trait allows retrieving the underlying FFI pointer from Python objects.
| 151 | |
| 152 | /// This trait allows retrieving the underlying FFI pointer from Python objects. |
| 153 | pub trait ToPythonPointer { |
| 154 | /// Retrieves the underlying FFI pointer (as a borrowed pointer). |
| 155 | fn as_ptr(&self) -> *mut ffi::PyObject; |
| 156 | |
| 157 | /// Retrieves the underlying FFI pointer as a "stolen pointer". |
| 158 | fn steal_ptr(self, py: Python) -> *mut ffi::PyObject; |
| 159 | } |
| 160 | |
| 161 | /// ToPythonPointer for borrowed Python pointers. |
| 162 | impl ToPythonPointer for PyObject { |
nothing calls this directly
no outgoing calls
no test coverage detected