Skip to main content

RootComponent

Trait RootComponent 

Source
pub trait RootComponent {
    // Required method
    fn render_root(self, cx: &mut RenderCx<'_, '_>) -> Element;
}

Required Methods§

Source

fn render_root(self, cx: &mut RenderCx<'_, '_>) -> Element

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§