Skip to main content

snippet_at

Function snippet_at 

Source
fn snippet_at(src: &str, from: usize) -> String
Expand description

Returns a preview of the input starting at from, truncated to SNIPPET_SIZE chars or the next newline.