Skip to main content

truncate_chars

Function truncate_chars 

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

Truncate s to at most max_chars characters (char-boundary safe, no ellipsis – the amendment specifies “truncated”, not a marker suffix).