Skip to main content

truncate_lines

Function truncate_lines 

Source
fn truncate_lines(lines: &[&str], max: usize) -> (String, bool)
Expand description

Truncates lines to the given maximum, returning the joined string and whether truncation occurred.