Skip to main content

cut

Function cut 

Source
pub fn cut(text: &str, width: usize, g: &Glyphs) -> String
Expand description

text in at most width cells, cut with the ellipsis when longer.