pub trait OrExit<R, S>{
// Required method
fn or_exit(self, message: S, code: i32) -> R;
}
Expand description
Types implementing the OrExit
provide the or_exit
function that can
be used to exit a program when a computation was not successful.
The goal of this thread is to provide a function similar to unwrap()
without a panic.