Skip to main content

fit_segments

Function fit_segments 

Source
fn fit_segments(text: &Measured<'_>, segments: &[String], width: f32) -> Kept
Expand description

The trailing run of segments that measures inside width — a path’s tail is the part that names where you are — with an ellipsis for the rest. At least one segment is always kept: a path that says nothing at all is worse than one that overruns its column.