Skip to main content

excerpt_of

Function excerpt_of 

pub fn excerpt_of(text: &str) -> Option<String>
Expand description

text as a selection excerpt: trimmed, at most MAX_EXCERPT_CHARS characters (a longer one is cut and ends in …), without control characters other than line breaks and tabs. None when nothing is left.