Skip to main content

cut

Function cut 

Source
pub fn cut(s: &str, left: usize, right: usize) -> String
Expand description

Remove left display columns from the start and right display columns from the end of s.

ANSI escape sequences are preserved and do not count toward either cut amount.