Skip to main content

wrap_text

Function wrap_text 

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

Word-wrap text into lines of at most width characters, breaking at word boundaries.