Struct sauron_core::dom::CreatedNode[][src]

pub struct CreatedNode {
    pub node: Node,
    // some fields omitted
}
Expand description

A node along with all of the closures that were created for that node’s events and all of it’s child node’s events.

Fields

node: Node

A Node or Element that was created from a Node

Implementations

create a simple node with no closure attache

create a text node

Create and return a CreatedNode instance (containing a DOM Node together with potentially related closures) for this virtual node.

set the element attribute

set the element attribute

Note: this is called in a loop, so setting the attributes, and style will not be on the same call, but on a subsequent call to each other. Using the if-else-if here for attributes, style, function_call.

remove element attribute, takes care of special case such as checked

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.