Skip to main content

truncate_utf8

Function truncate_utf8 

Source
pub fn truncate_utf8(value: &mut String, limit: usize)
Expand description

Truncate to a byte budget without splitting a UTF-8 character.