Skip to main content

truncate_text

Function truncate_text 

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

Cuts free text to max_bytes and notes the cut.