Function pyo3_stub_gen_derive::gen_stub::util::escape_return_type
source ยท pub fn escape_return_type(ret: &ReturnType) -> Option<Type>
Expand description
Extract T
from PyResult<T>
.
For PyResult<&'a T>
case, 'a
will be removed, i.e. returns &T
for this case.