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§

source

fn unwrap_or_abort(self, message: &str) -> Self::Inner

Returns the value on success, otherwise aborts the program with message.

Implementations on Foreign Types§

source§

impl<T> UnwrapOrAbort for Option<T>

§

type Inner = T

source§

fn unwrap_or_abort(self, message: &str) -> Self::Inner

source§

impl<T, E> UnwrapOrAbort for Result<T, E>
where E: Debug,

§

type Inner = T

source§

fn unwrap_or_abort(self, message: &str) -> Self::Inner

Implementors§