Skip to main content

wrap_text

Function wrap_text 

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

Wrap text to fit within the specified width.

Preserves existing line breaks and word boundaries.