Skip to main content

wrap_mode

Function wrap_mode 

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

Width-mode variant of wrap.

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