Skip to main content

Renderer

Trait Renderer 

Source
pub trait Renderer {
    type Output;

    // Required method
    fn render(&mut self, document: &Document<'_>) -> RenderResult<Self::Output>;
}
Expand description

Trait for rendering Markdown AST to various output formats.

Required Associated Types§

Source

type Output

The output type of the renderer.

Required Methods§

Source

fn render(&mut self, document: &Document<'_>) -> RenderResult<Self::Output>

Renders a document to the output format.

Implementors§