Skip to main content

Renderable

Trait Renderable 

Source
pub trait Renderable<COMP: Component> {
    // Required method
    fn view(&self) -> Html<COMP>;
}
Expand description

Should be rendered relative to context and component environment.

Required Methods§

Source

fn view(&self) -> Html<COMP>

Called by rendering loop.

Trait Implementations§

Source§

impl<'a, COMP: Component> From<&'a dyn Renderable<COMP>> for VNode<COMP>

Source§

fn from(value: &'a dyn Renderable<COMP>) -> Self

Converts to this type from the input type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> Renderable<Select<T>> for Select<T>
where T: ToString + PartialEq + Clone + 'static,