(self, vm: &VirtualMachine)
| 1273 | } |
| 1274 | |
| 1275 | pub fn try_downcast<T: PyPayload>(self, vm: &VirtualMachine) -> PyResult<PyRef<T>> { |
| 1276 | T::try_downcast_from(&self, vm)?; |
| 1277 | Ok(unsafe { self.downcast_unchecked() }) |
| 1278 | } |
| 1279 | |
| 1280 | /// Force to downcast this reference to a subclass. |
| 1281 | /// |
no test coverage detected