pub fn hardwrap_mode(
s: &str,
limit: usize,
preserve_space: bool,
mode: WidthMode,
eaw_wide: bool,
) -> StringExpand description
Width-mode variant of hardwrap.
mode and eaw_wide control grapheme width calculation. limit == 0 returns the input unchanged.