fmt_debug_set

Function fmt_debug_set 

Source
pub const fn fmt_debug_set<F, I>(values_fn: F) -> FmtDebugSet<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 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'}");