Skip to main content

excerpt

Function excerpt 

Source
pub fn excerpt(passage: &str, query: &str) -> String
Expand description

The part of passage around the first word of query it holds, the match in its middle, cut at word boundaries and marked where it was cut: what a hit inside prose shows of it.