Fail

Trait Fail 

Source
pub trait Fail {
    type Target;

    // Required method
    fn or_fail(self, reason: &'static str) -> Result<Self::Target, Error>;
}

Required Associated Types§

Required Methods§

Source

fn or_fail(self, reason: &'static str) -> Result<Self::Target, Error>

Implementations on Foreign Types§

Source§

impl<T> Fail for Option<T>

Source§

type Target = T

Source§

fn or_fail(self, reason: &'static str) -> Result<Self::Target, Error>

Implementors§