ellipsis_str

Function ellipsis_str 

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

Truncate a string with “…” if it exceeds maxLen (char-safe).