Type Alias pyo3::err::PyResult

source ·
pub type PyResult<T> = Result<T, PyErr>;
Expand description

Represents the result of a Python call.

Aliased Type§

enum PyResult<T> {
    Ok(T),
    Err(PyErr),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(PyErr)

Contains the error value

Trait Implementations§

source§

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

source§

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

source§

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

source§

impl Sealed for PyResult<Bound<'_, PyAny>>

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