pub fn truncate_expr(expr: &str, max_len: usize) -> String
Truncate an expression for display with ... suffix when required.
...
max_len is interpreted as a character limit (not bytes) to remain UTF-8 safe.
max_len