Struct percy_vdom::VElement[][src]

pub struct VElement {
    pub tag: String,
    pub attrs: HashMap<String, String, RandomState>,
    pub events: Events,
    pub children: Vec<VirtualNode, Global>,
}

Fields

tag: String

The HTML tag, such as “div”

attrs: HashMap<String, String, RandomState>

HTML attributes such as id, class, style, etc

events: Events

Events that will get added to your real DOM element via .addEventListener

children: Vec<VirtualNode, Global>

The children of this VirtualNode. So a

structure would have a parent div and one child, em.

Implementations

Build a DOM element by recursively creating DOM nodes for this element and it’s children, it’s children’s children, etc.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Converts the given value to a String. Read more

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.