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§
- Dialog
Expect - A trait with 1 function,
dialog_expect, which is implemented forstd::option::Option<T>andstd::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.