pyo3::impl_::trampoline

Function panic_result_into_callback_output

Source
fn panic_result_into_callback_output<R>(
    py: Python<'_>,
    panic_result: Result<PyResult<R>, Box<dyn Any + Send + 'static>>,
) -> R
Expand description

Converts the output of std::panic::catch_unwind into a Python function output, either by raising a Python exception or by unwrapping the contained success output.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here