Trait HType

Source
pub trait HType {
    // Required method
    fn as_js(&self) -> Cow<'_, JsValue>;
}
Expand description

A marker trait for the component type that H is supposed to build.

Can either be HtmlTag or any imported component.

Required Methods§

Source

fn as_js(&self) -> Cow<'_, JsValue>

Returns a reference to the JsValue of this component type.

Implementors§