pub trait OrBug<T> { fn or_bug(self, msg: &str) -> T; }
Implemented for “option” types, i.e., those that can be unwrapped into a value, to provide a utility method that either unwraps the value or reports a bug.
Unwrap or report a bug.