truncate_text

Function truncate_text 

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

Truncate text to max length with ellipsis.

Used for displaying node text in traces.