ContentParser

Trait ContentParser 

Source
pub trait ContentParser {
    // Required method
    fn parse(&self, content: &str, path: &Path) -> Result<ParsedContent>;
}
Expand description

Trait for content parsers.

Required Methods§

Source

fn parse(&self, content: &str, path: &Path) -> Result<ParsedContent>

Parse content from a string and file path.

Implementors§