pub(crate) trait PyResultExt<'py>: Sealed {
// Required methods
fn downcast_into<T: PyTypeCheck>(self) -> PyResult<Bound<'py, T>>;
unsafe fn downcast_into_unchecked<T>(self) -> PyResult<Bound<'py, T>>;
}
Required Methods§
fn downcast_into<T: PyTypeCheck>(self) -> PyResult<Bound<'py, T>>
unsafe fn downcast_into_unchecked<T>(self) -> PyResult<Bound<'py, T>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.