devela::_dep::pyo3::prelude

Type Alias PyResult

pub type PyResult<T> = Result<T, PyErr>;
Available on crate features dep_pyo3 and std only.
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