pub fn scroll(
text: &str,
count: i32,
include_incomplete: bool,
) -> (usize, usize)Expand description
Byte length of a leading substring of text that is count columns wide,
together with that substring’s actual width.
If text is narrower than count, the whole string is returned. Negative
count is treated as 0. When column count falls in the middle of a
double-width grapheme, include_incomplete decides whether that grapheme is
included.