Skip to main content

flatten

Function flatten 

Source
pub fn flatten(segments: Vec<Segment>) -> Flattened
Expand description

Join the segments when every one is finished markup, so the common no-callback path stays a single string and the splicing layer can be skipped; hand the segments back untouched when callback nodes are present.