collect

Function collect 

Source
pub fn collect(src: &str, marker: &str) -> DocComments
Expand description

Collect every doc-comment run in a file.

A line counts only when the marker is the first thing on it. That is what keeps a string containing ## from being read as documentation — and Beck string literals cannot span lines, so scanning line by line needs no lexer state.