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§
Sourcefn f<F>(self, file_line_func_func: (&str, u32, &str, F)) -> Result<T, MoreError>
fn f<F>(self, file_line_func_func: (&str, u32, &str, F)) -> Result<T, MoreError>
附加文件名、行号、函数名、附加说明, 生成 MoreError, 与 m() 类似, 但附加内容由闭包产生
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.