Skip to main content

elide

Function elide 

Source
pub fn elide(text: &str, limit: usize) -> String
Expand description

At most limit chars, cut on word boundaries: a mid-word cut leaves a fragment (“meo”) that looks like a separate fact and cannot be grounded against the source row.