[][src]Type Definition rustpython_vm::pyobject::PyResult

type PyResult<T = PyObjectRef> = Result<T, PyObjectRef>;

Use this type for function which return a python object or and exception. Both the python object and the python exception are PyObjectRef types since exceptions are also python objects.

Trait Implementations

impl<T> IntoPyObject for PyResult<T> where
    T: IntoPyObject
[src]