Skip to main content

ellipsize

Function ellipsize 

Source
pub(crate) fn ellipsize(s: &str, max: usize) -> String
Expand description

Middle-ellipsize s to at most max chars so the footer never widens the card.