Function display_container::display_pair
source · pub fn display_pair<'a, K: Display + 'a, V: Display + 'a>(
key: K,
separator: &'a str,
value: V
) -> impl Display + 'a
Expand description
Display a pair of elements with a separator in the middle.
Equivalent to write!(f, "{}{}{}", key, separator, value)
.