Skip to main content

truncate

Function truncate 

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

Truncates a string to a maximum length.