Skip to main content

hardwrap_mode

Function hardwrap_mode 

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

Width-mode variant of hardwrap.

mode and eaw_wide control grapheme width calculation. limit == 0 returns the input unchanged.