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§
Trait Implementations§
Source§impl<'a, COMP: Component> From<&'a dyn Renderable<COMP>> for VNode<COMP>
impl<'a, COMP: Component> From<&'a dyn Renderable<COMP>> for VNode<COMP>
Source§fn from(value: &'a dyn Renderable<COMP>) -> Self
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".