Trait AddMoreError

Source
pub trait AddMoreError<T> {
    // Required methods
    fn f<F>(
        self,
        file_line_func_func: (&str, u32, &str, F),
    ) -> Result<T, MoreError>
       where F: Fn() -> String;
    fn m(
        self,
        file_line_func_text: (&str, u32, &str, &str),
    ) -> Result<T, MoreError>;
    fn p(&self, file_line_func_text: (&str, u32, &str, &str));
}
Expand description

给 Error, … 增加更多信息

Required Methods§

Source

fn f<F>(self, file_line_func_func: (&str, u32, &str, F)) -> Result<T, MoreError>
where F: Fn() -> String,

附加文件名、行号、函数名、附加说明, 生成 MoreError, 与 m() 类似, 但附加内容由闭包产生

Source

fn m(self, file_line_func_text: (&str, u32, &str, &str)) -> Result<T, MoreError>

附加文件名、行号、函数名、附加说明, 生成 MoreError

Source

fn p(&self, file_line_func_text: (&str, u32, &str, &str))

附加文件名、行号、函数名、附加说明, 输出

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> AddMoreError<T> for Result<T, MoreError>

Source§

fn f<F>(self, file_line_func_func: (&str, u32, &str, F)) -> Result<T, MoreError>
where F: Fn() -> String,

附加文件名、行号、函数名、附加说明

Source§

fn m(self, file_line_func_text: (&str, u32, &str, &str)) -> Result<T, MoreError>

附加文件名、行号、函数名、附加说明

Source§

fn p(&self, file_line_func_text: (&str, u32, &str, &str))

附加文件名、行号、函数名、附加说明

Source§

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

Source§

fn f<F>(self, file_line_func_func: (&str, u32, &str, F)) -> Result<T, MoreError>
where F: Fn() -> String,

附加文件名、行号、函数名、附加说明

Source§

fn m(self, file_line_func_text: (&str, u32, &str, &str)) -> Result<T, MoreError>

附加文件名、行号、函数名、附加说明

Source§

fn p(&self, file_line_func_text: (&str, u32, &str, &str))

附加文件名、行号、函数名、附加说明

Source§

impl<T, E> AddMoreError<T> for &E
where E: Error,

Source§

fn f<F>(self, file_line_func_func: (&str, u32, &str, F)) -> Result<T, MoreError>
where F: Fn() -> String,

附加文件名、行号、函数名、附加说明

Source§

fn m(self, file_line_func_text: (&str, u32, &str, &str)) -> Result<T, MoreError>

附加文件名、行号、函数名、附加说明

Source§

fn p(&self, file_line_func_text: (&str, u32, &str, &str))

附加文件名、行号、函数名、附加说明

Implementors§