pub type PyResult<T> = Result<T, PyErr>;Expand description
Represents the result of a Python call.
Aliased Type§
pub enum PyResult<T> {
Ok(T),
Err(PyErr),
}Variants§
Trait Implementations§
Source§impl<'py> PyResultExt<'py> for PyResult<Bound<'py, PyAny>>
impl<'py> PyResultExt<'py> for PyResult<Bound<'py, PyAny>>
Source§unsafe fn cast_into_unchecked<T>(self) -> PyResult<Bound<'py, T>>
unsafe fn cast_into_unchecked<T>(self) -> PyResult<Bound<'py, T>>
§Safety
see requirements for Bound::cast_into_unchecked