pub trait ParserGenerator: Sealed {
    // Required method
    fn generate_parser() -> ParserFn;
}
Expand description

Trait implemented by all Unimarkup elements that can generate parser function for their content.

Required Methods§

source

fn generate_parser() -> ParserFn

Generates parser function for the given Unimarkup element.

Implementors§

source§

impl<'a, T> ParserGenerator for Twhere T: ElementParser + 'a + 'static,