Skip to main content

cut_to

Function cut_to 

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

s cut to at most max bytes, on a character boundary.