Function truncate

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

Truncate a string to a maximum length