fmt_separated_debug_list

Function fmt_separated_debug_list 

Source
pub const fn fmt_separated_debug_list<F, S, I>(
    values_fn: F,
    separator: S,
) -> FmtSeparatedDebugList<F, S>
where F: Fn() -> I, I: IntoIterator, I::Item: Debug, S: Debug,
Expand description

Creates an object that Debug or Display a list of Debug objects with specified separator that implements Debug.

Example:

let fmt = fmt_tools::fmt_separated_debug_list(|| 'a'..'e', '*');

assert_eq!(format!("{fmt:?}"), "'a''*''b''*''c''*''d'");
assert_eq!(format!("{fmt}"), "'a''*''b''*''c''*''d'");