Trait tcl::UnwrapOrAbort
source · pub trait UnwrapOrAbort {
type Inner;
// Required method
fn unwrap_or_abort(self, message: &str) -> Self::Inner;
}
Expand description
Aborts the program instead of panic!()
in FFI callbacks.
Required Associated Types§
Required Methods§
sourcefn unwrap_or_abort(self, message: &str) -> Self::Inner
fn unwrap_or_abort(self, message: &str) -> Self::Inner
Returns the value on success, otherwise aborts the program with message
.