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