Skip to main content

truncate_str

Function truncate_str 

Source
fn truncate_str(s: &str, max_len: usize) -> String
Expand description

Truncate a string to max length, centering around the middle (where the operator typically is)