Skip to main content

truncate_chars

Function truncate_chars 

Source
fn truncate_chars(s: &str, max: usize) -> String
Expand description

Cut to max CHARS (never mid-codepoint), appending an ellipsis when it actually cut something.