[−][src]Type Definition rustpython_vm::pyobject::PyResult
type PyResult<T = PyObjectRef> = Result<T, PyBaseExceptionRef>;
Use this type for functions which return a python object or an exception.
Both the python object and the python exception are PyObjectRef
types
since exceptions are also python objects.
Trait Implementations
impl IntoPyNoResult for PyResult<()>
[src]
fn into_noresult(self) -> PyResult<()>
[src]
impl<T> IntoPyObject for PyResult<T> where
T: IntoPyObject,
[src]
T: IntoPyObject,