pub trait PanicUtils<T> {
// Required method
fn unwrap_or_exit(self, msg: &str) -> T;
}Expand description
Helpers to panic or exit cleanly with messages.
Required Methods§
Sourcefn unwrap_or_exit(self, msg: &str) -> T
fn unwrap_or_exit(self, msg: &str) -> T
If None or Err, logs the message and exits the program.