Struct sauron::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 an element node

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

TODO: Optimization for apply_patches::find_nodes Keep track of the Node with their corresponding NodeIdx, so as not to traverse all of them to find the node. We can maintain a HashMap<NodeIdx, web_sys::Node>

set the element attribute

set the element attribute

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.