Skip to main content

cut_mode

Function cut_mode 

Source
pub fn cut_mode(
    s: &str,
    left: usize,
    right: usize,
    mode: WidthMode,
    eaw_wide: bool,
) -> String
Expand description

Width-mode variant of cut.

mode and eaw_wide control grapheme width calculation. If the requested cuts leave no visible columns, the result is empty; otherwise trailing escape sequences are retained.