Skip to main content

truncate_middle_chars

Function truncate_middle_chars 

Source
pub fn truncate_middle_chars(s: &str, max_bytes: usize) -> String
Expand description

Truncate a string to max_bytes using a character-count marker.