Emacs-specific extension methods for
fn unwrap_or_propagate(self) -> T
Unwraps a result, yielding the content of an
Panics if the value is an
Err, using a sensible panic value.
If the underlying error is an
ErrorKind, it will be used as the value of the panic,
which makes the
#[defun] behave as if the corresponding non-local exit was propagated.
Otherwise, tries to use
Display to get a descriptive error message.
This is useful when errors cannot be propagated using
Result, e.g. callbacks whose types
are dictated by 3rd-party libraries.