(&self, py: Python)
| 105 | { |
| 106 | #[inline] |
| 107 | fn clone_ref(&self, py: Python) -> T { |
| 108 | let ptr = self.as_object().as_ptr(); |
| 109 | unsafe { T::unchecked_downcast_from(PyObject::from_borrowed_ptr(py, ptr)) } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | impl<T> PyClone for Option<T> |