Skip to main content

truncate_chars

Function truncate_chars 

Source
pub fn truncate_chars(text: &str, max: usize) -> Cow<'_, str>
Expand description

At most max characters of text, with an ellipsis when it was longer.