Trait cubist_config::util::OrBug

source ·
pub trait OrBug<T> {
    fn or_bug(self, msg: &str) -> T;
}
Expand description

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.

Required Methods§

Unwrap or report a bug.

Implementations on Foreign Types§

Implementors§