[−][src]Trait outline::parser::Parser
A Parser
determines which lines are code and which are text, and may use its Config
to
actually handle reading the lines of code
Associated Types
Loading content...Required methods
fn parse<'a>(&self, input: &'a str) -> Result<Document<'a>, Self::Error>
Parses the text part of the document. Should delegate the code section on a line-by-line basis to the built in code parser.
Provided methods
fn parse_name<'a>(
&self,
input: &'a str
) -> Result<(String, Vec<&'a str>), ParseError>
&self,
input: &'a str
) -> Result<(String, Vec<&'a str>), ParseError>
Parses a macro name, returning the name and the extracted variables
fn parse_line<'a>(
&self,
line_number: usize,
input: &'a str
) -> Result<Line<'a>, ParseError>
&self,
line_number: usize,
input: &'a str
) -> Result<Line<'a>, ParseError>
Parses a line as code, returning the parsed Line
object