Skip to main content

truncate_context

Function truncate_context 

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

Truncate a string to a maximum length, adding “…” if truncated.