Trait BeautifulErrors

Source
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> BeautifulErrors<T> for Option<T>

Source§

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

Source§

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

Source§

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

Implementors§