Function fmt_debug_map
Source pub const fn fmt_debug_map<F, I, K, V>(values_fn: F) -> FmtDebugMap<F>
Expand description
Creates an object that Debug or Display a list of (Debug, Debug) objects as a map.
Example:
let fmt = fmt_tools::fmt_debug_map(|| ('a'..'d').zip('x'..));
assert_eq!(format!("{fmt:?}"), "{'a': 'x', 'b': 'y', 'c': 'z'}");
assert_eq!(format!("{fmt}"), "{'a': 'x', 'b': 'y', 'c': 'z'}");