Function cursive::utils::simple_suffix [] [src]

pub fn simple_suffix(text: &str, width: usize) -> Prefix

Computes the length (number of bytes) and width of a suffix that fits in the given width.

Breaks between any two graphemes.