fmt_debug_list

Function fmt_debug_list 

Source
pub const fn fmt_debug_list<F, I>(values_fn: F) -> FmtDebugList<F>
where F: Fn() -> I, I: IntoIterator, I::Item: Debug,
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']");