Skip to main content

compact_text_blocks

Function compact_text_blocks 

Source
pub fn compact_text_blocks<'a>(
    blocks: impl IntoIterator<Item = &'a str>,
    separator: &str,
) -> String
Expand description

Joins non-empty text fragments with a caller-provided separator.