ellipsize_to_max_bytes

Function ellipsize_to_max_bytes 

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

Ellipsize a string to a maximum byte length, respecting UTF-8 boundaries.