(ptr: &*mut ffi::PyObject)
| 181 | /// Undefined behavior if the pointer is NULL or invalid. |
| 182 | #[inline] |
| 183 | pub unsafe fn borrow_from_ptr(ptr: &*mut ffi::PyObject) -> &PyObject { |
| 184 | debug_assert!(!ptr.is_null()); |
| 185 | mem::transmute(ptr) |
| 186 | } |
| 187 | |
| 188 | /// Transmutes a slice of owned FFI pointers to `&[PyObject]`. |
| 189 | /// Undefined behavior if any pointer in the slice is NULL or invalid. |
nothing calls this directly
no outgoing calls
no test coverage detected