[−][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.
Associated Types
type Inner
Required Methods
fn return_type_into_py_result(self) -> PyResult<Self::Inner>
Implementors
impl<T: IntoPyObject> ReturnTypeIntoPyResult for T
[src]
impl<T: IntoPyObject> ReturnTypeIntoPyResult for T
type Inner = T
fn return_type_into_py_result(self) -> PyResult<Self::Inner>
[src]
fn return_type_into_py_result(self) -> PyResult<Self::Inner>
impl<T: IntoPyObject> ReturnTypeIntoPyResult for PyResult<T>
[src]
impl<T: IntoPyObject> ReturnTypeIntoPyResult for PyResult<T>
type Inner = T
fn return_type_into_py_result(self) -> PyResult<Self::Inner>
[src]
fn return_type_into_py_result(self) -> PyResult<Self::Inner>