pub fn cut_str(s: &str, width: usize) -> Cow<'_, str>
Expand description

The function cuts the string to a specific width.

BE AWARE: width is expected to be in bytes.