Skip to main content

wrap_text_optimal

Function wrap_text_optimal 

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

Wrap text optimally, returning just the lines (convenience wrapper).

Handles multiple paragraphs separated by \n.