Skip to main content

parse_definitions

Function parse_definitions 

Source
pub fn parse_definitions(s: &str) -> Vec<ParsedDefinition>
Expand description

Section 4.7 over a whole paragraph: every link reference definition at the start of s, in order, each with the BYTE range it takes.

One parser over one copy of s, advancing through it. Copying the remaining tail once per definition, as the per-definition entry point does, made a paragraph of n short definitions cost O(n^2).