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