Skip to main content

fit

Function fit 

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

text in width columns, cut at its end and marked with the ellipsis.