Skip to main content

truncate_str

Function truncate_str 

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

Truncate a string to the given byte limit, appending info if truncated.