pub trait BeautifulErrors<T> {
    // Required method
    fn expect_or_err(self, msg: &str) -> T;
}

Required Methods§

source

fn expect_or_err(self, msg: &str) -> T

Implementations on Foreign Types§

source§

impl<T, E> BeautifulErrors<T> for Result<T, E>

source§

fn expect_or_err(self, msg: &str) -> T

source§

impl<T> BeautifulErrors<T> for Option<T>

source§

fn expect_or_err(self, msg: &str) -> T

Implementors§