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