truncate_chars

Function truncate_chars 

Source
fn truncate_chars(text: &str, limit: usize) -> String
Expand description

Truncate a string to a character boundary and add an ellipsis marker.