mail_parser::parsers::preview

Function truncate_text

Source
pub fn truncate_text<'x, 'y>(text: Cow<'y, str>, max_len: usize) -> Cow<'x, str>