pub fn truncate_spans_with_ellipsis<'a>( spans: &[Span<'a>], max_width: u16, ) -> (Vec<Span<'a>>, u16)
Truncates a slice of spans and adds an ellipsis if truncation occurred