Enum kagura::html::Html[][src]

pub enum Html<DemirootComp: Component> {
    ComponentNode(ComponentNode<DemirootComp>),
    TextNode {
        text: String,
        events: Events<DemirootComp::Msg>,
    },
    ElementNode {
        tag_name: String,
        children: Vec<Self>,
        attributes: Attributes,
        events: Events<DemirootComp::Msg>,
        ref_marker: Vec<RefMarker<DemirootComp>>,
    },
    Fragment(Vec<Self>),
}

Variants

ComponentNode(ComponentNode<DemirootComp>)

Tuple Fields of ComponentNode

0: ComponentNode<DemirootComp>
TextNode

Fields of TextNode

text: Stringevents: Events<DemirootComp::Msg>
ElementNode

Fields of ElementNode

tag_name: Stringchildren: Vec<Self>attributes: Attributesevents: Events<DemirootComp::Msg>ref_marker: Vec<RefMarker<DemirootComp>>
Fragment(Vec<Self>)

Tuple Fields of Fragment

0: Vec<Self>

Implementations

Creates Html from a non-validated text

Creates Html from element

Creates Html which means there is no node

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.