Trait pyo3::py_result_ext::PyResultExt

source ·
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§

source

fn downcast_into<T: PyTypeCheck>(self) -> PyResult<Bound<'py, T>>

source

unsafe fn downcast_into_unchecked<T>(self) -> PyResult<Bound<'py, T>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'py> PyResultExt<'py> for PyResult<Bound<'py, PyAny>>

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here