Skip to main content

wrap

Function wrap 

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

Break text into lines no wider than width.

wrap_spans under one style, flattened back to strings for the callers that have no styles to keep.