papergrid::util

Function cut_str_basic

Source
pub fn cut_str_basic(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.