Function display_container::fmt_keyed_container
source · pub fn fmt_keyed_container<K: Display, V: Display, Iter: IntoIterator<Item = (K, V)>>(
f: &mut Formatter<'_>,
prefix: &str,
suffix: &str,
separator: &str,
items: Iter
) -> Result
Expand description
Helper for display implementation of container-y types (like dict, struct).
Equivalent to fmt_container
where the items have display_pair
applied to them.