2016-09-04 15:12:54 +00:00
|
|
|
// Generates a extension for the `Result<T, E>`, named `DebugResult` which has functionality to
|
|
|
|
// print either `T` or `E` via `debug!()`.
|
2016-07-30 09:57:42 +00:00
|
|
|
generate_result_logging_extension!(
|
|
|
|
DebugResult,
|
|
|
|
map_dbg,
|
|
|
|
map_dbg_str,
|
|
|
|
map_dbg_err,
|
|
|
|
map_dbg_err_str,
|
|
|
|
|s| { debug!("{}", s); }
|
|
|
|
);
|