pyo3::err

Type Alias 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