Skip to main content

wordwrap_mode

Function wordwrap_mode 

Source
pub fn wordwrap_mode(
    s: &str,
    limit: usize,
    breakpoints: &str,
    mode: WidthMode,
    eaw_wide: bool,
) -> String
Expand description

Width-mode variant of wordwrap.

breakpoints is a set of characters where a line may break. mode and eaw_wide control grapheme width calculation; limit == 0 returns the input unchanged.