Skip to main content

truncated

Function truncated 

Source
pub fn truncated(width: usize, s: String) -> String
Expand description

A little better than the builtin string truncation in format strings, because it includes ellipses.