Function truncate_spans_with_ellipsis

Source
pub fn truncate_spans_with_ellipsis<'a>(
    spans: &[Span<'a>],
    max_width: u16,
) -> (Vec<Span<'a>>, u16)
Expand description

Truncates a slice of spans and adds an ellipsis if truncation occurred