Function mz_ore::str::bracketed

source ยท
pub fn bracketed<'a, D>(
    open: &'a str,
    close: &'a str,
    contents: D,
) -> impl Display + 'a
where D: Display + 'a,
Expand description

Creates a type whose fmt::Display implementation outputs item preceded by open and followed by close.