10 lines
292 B
Rust
10 lines
292 B
Rust
// Generates a extension for the `Result<T, E>`, named `DebugResult` which has functionality to
|
|
// print either `T` or `E` via `debug!()`.
|
|
generate_result_logging_extension!(
|
|
DebugResult,
|
|
map_dbg,
|
|
map_dbg_str,
|
|
map_dbg_err,
|
|
map_dbg_err_str,
|
|
|s| { debug!("{}", s); }
|
|
);
|