Function fmt_debug_list
Source pub const fn fmt_debug_list<F, I>(values_fn: F) -> FmtDebugList<F>
Expand description
Creates an object that Debug or Display a list of Debug objects as a list.
Example:
let fmt = fmt_tools::fmt_debug_list(|| 'a'..'g');
assert_eq!(format!("{fmt:?}"), "['a', 'b', 'c', 'd', 'e', 'f']");
assert_eq!(format!("{fmt}"), "['a', 'b', 'c', 'd', 'e', 'f']");