ResultExt

Trait ResultExt 

Source
pub trait ResultExt {
    type Output;

    // Required methods
    fn convert(self) -> Self::Output;
    fn context(self, message: String) -> Self::Output;
    fn reword(self, message: String) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn convert(self) -> Self::Output

Source

fn context(self, message: String) -> Self::Output

Source

fn reword(self, message: String) -> Self::Output

Implementations on Foreign Types§

Source§

impl<T, E> ResultExt for Result<T, E>
where E: Error,

Source§

type Output = Result<T, Error>

Source§

fn convert(self) -> Result<T>

Source§

fn context(self, message: String) -> Result<T>

Source§

fn reword(self, message: String) -> Result<T>

Implementors§

Source§

impl<T> ResultExt for spr::error::Result<T>