Trait ExpectExt

Source
pub(crate) trait ExpectExt<T> {
    // Required method
    fn expect_str(self, what: &str, s: &str) -> T;
}

Required Methods§

Source

fn expect_str(self, what: &str, s: &str) -> T

Implementations on Foreign Types§

Source§

impl<T> ExpectExt<T> for Option<T>

Source§

fn expect_str(self, what: &str, s: &str) -> T

Source§

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

Source§

fn expect_str(self, what: &str, s: &str) -> T

Implementors§