[−][src]Function cursive::utils::lines::simple::simple_prefix
pub fn simple_prefix(text: &str, width: usize) -> Span
Computes the longest prefix that fits in the given width.
Breaks between any two graphemes.