Component

Trait Component 

Source
pub trait Component: 'static {
    // Required method
    fn render(&self, manager: &mut Manager<'_>) -> Element;
}
Expand description

Platform-specific component trait.

Required Methods§

Source

fn render(&self, manager: &mut Manager<'_>) -> Element

Render function that must be implemented by components.

Trait Implementations§

Source§

impl AsRef<dyn Component> for OpaqueComponent

Source§

fn as_ref(&self) -> &dyn Component

Converts this type into a shared reference of the (usually inferred) input type.

Implementors§