// Generates a extension for the `Result`, 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); } );