Trait MayBail

Source
pub trait MayBail<T> {
    // Required methods
    fn may_bail(self, rerun: bool) -> T;
    fn may_bail_with(self, msg: &str, rerun: bool) -> T;
}

Required Methods§

Source

fn may_bail(self, rerun: bool) -> T

Source

fn may_bail_with(self, msg: &str, rerun: bool) -> T

Implementations on Foreign Types§

Source§

impl MayBail<bool> for bool

Source§

fn may_bail(self, rerun: bool) -> bool

Source§

fn may_bail_with(self, msg: &str, rerun: bool) -> bool

Source§

impl<T> MayBail<T> for Option<T>

Source§

fn may_bail(self, rerun: bool) -> T

Source§

fn may_bail_with(self, msg: &str, rerun: bool) -> T

Source§

impl<T, E> MayBail<T> for Result<T, E>
where E: Display,

Source§

fn may_bail(self, rerun: bool) -> T

Source§

fn may_bail_with(self, msg: &str, rerun: bool) -> T

Implementors§