Skip to main content

wrap_chars

Function wrap_chars 

Source
pub fn wrap_chars(s: &str, width: usize) -> Vec<String>
Expand description

Word-wrap s into chunks of at most width chars each. Breaks on whitespace; hard-breaks words longer than width.