Function cursive_core::utils::lines::simple::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.