[−][src]Trait pyo3::ReturnTypeIntoPyResult
This trait wraps a T: IntoPyObject into PyResult
This is necessaty because proc macros run before typechecking and can't decide whether a return type is a (possibly aliased) PyResult or not. It is also quite handy because the codegen is currently built on the assumption that all functions return a PyResult.