split

Function split 

Source
fn split<'s>(
    context: &Context,
    s: StyledStr<'s>,
    width: Mm,
) -> Option<(StyledCow<'s>, StyledCow<'s>)>
Expand description

Tries to split the given string into two parts so that the first part is shorter than the given width.