ExpectDialog

Trait ExpectDialog 

Source
pub trait ExpectDialog<T> {
    // Required method
    fn expect_dialog(self, msg: &str) -> T;
}
Expand description

Expect dialog trait, implemented on Option and Result out of the box

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<T> ExpectDialog<T> for Option<T>

Source§

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

Source§

impl<T, E: Debug> ExpectDialog<T> for Result<T, E>

Source§

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

Implementors§