Skip to main content

truncate_output

Function truncate_output 

Source
pub fn truncate_output(text: &str, max_bytes: u64) -> (String, bool)
Expand description

Truncate UTF-8 text on a char boundary; returns (text, truncated).