Trait UnwrapOrPanicError

Source
pub trait UnwrapOrPanicError<T, E> {
    // Required methods
    fn unwrap_or_panic_str(self) -> T
       where E: AsRef<str>;
    fn unwrap_or_panic_static_str(self) -> T
       where E: Into<&'static str>;
    fn unwrap_or_panic_display(self) -> T
       where E: Display;
}

Required Methods§

Source

fn unwrap_or_panic_str(self) -> T
where E: AsRef<str>,

Source

fn unwrap_or_panic_static_str(self) -> T
where E: Into<&'static str>,

Source

fn unwrap_or_panic_display(self) -> T
where E: Display,

Implementations on Foreign Types§

Source§

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

Source§

fn unwrap_or_panic_str(self) -> T
where E: AsRef<str>,

Source§

fn unwrap_or_panic_static_str(self) -> T
where E: Into<&'static str>,

Source§

fn unwrap_or_panic_display(self) -> T
where E: Display,

Implementors§