Crate dialog_expect

Source
Expand description

This crate provides a trait DialogExpect, with a function that unwraps Option<T> and Result<T, E> or shows a dialog box and panics. There is also an alternative to the panic!() macro that is the same thing, but it shows a dialog box first.

Traits§

DialogExpect
A trait with 1 function, dialog_expect, which is implemented for std::option::Option<T> and std::result::Result<T, E>.

Functions§

dialog_panic
An alternative to panic!() showing a dialog box. This is a function because I honestly couldn’t figure out how to have a macro taking multiple args.