[][src]Module ffi_support::abort_on_panic

This module exists just to expose a variant of [call_with_result] and [call_with_output] that aborts, instead of unwinding, on panic.

Structs

AbortOnDrop

Functions

call_with_output

Same as the root call_with_output, but aborts on panic instead of unwinding. As a result, it doesn't require a [ExternError] out argument. See the call_with_output documentation for more info.

call_with_result

Same as the root call_with_result, but aborts on panic instead of unwinding. See the call_with_result documentation for more.

with_abort_on_panic

A helper function useful for cases where you'd like to abort on panic, but aren't in a position where you'd like to return an FFI-compatible type.