Skip to main content

NodeRenderer

Trait NodeRenderer 

Source
pub trait NodeRenderer: 'static {
    // Required method
    fn render(
        &self,
        node: &Node,
        ctx: &NodeRenderCtx<'_>,
        window: &mut Window,
        cx: &mut App,
    ) -> AnyElement;
}

Required Methods§

Source

fn render( &self, node: &Node, ctx: &NodeRenderCtx<'_>, window: &mut Window, cx: &mut App, ) -> AnyElement

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§