Skip to main content

RenderNode

Trait RenderNode 

Source
pub trait RenderNode<W> {
    // Required method
    fn render_node<'a>(
        &self,
        writer: &mut W,
        source: &'a str,
        arena: &'a Arena,
        node_ref: NodeRef,
        entering: bool,
        context: &mut Context,
    ) -> Result<WalkStatus>;
}
Expand description

Traits for rendering nodes.

Required Methods§

Source

fn render_node<'a>( &self, writer: &mut W, source: &'a str, arena: &'a Arena, node_ref: NodeRef, entering: bool, context: &mut Context, ) -> Result<WalkStatus>

Implementors§

Source§

impl<F, W> RenderNode<W> for F
where F: for<'a> Fn(&mut W, &'a str, &'a Arena, NodeRef, bool, &mut Context) -> Result<WalkStatus>,

Source§

impl<W: TextWrite> RenderNode<W> for ParagraphRenderer<W>