pub trait NodeRenderer: 'static {
// Required method
fn render(
&self,
node: &Node,
ctx: &NodeRenderCtx<'_>,
window: &mut Window,
cx: &mut App,
) -> AnyElement;
}Required Methods§
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".