Struct mt_dom::patch::InsertNode[][src]

pub struct InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG> {
    pub tag: Option<&'a TAG>,
    pub node_idx: NodeIdx,
    pub new_node_idx: NodeIdx,
    pub node: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>,
}
Expand description

InsertNode patch contains the a node to insert into

Fields

tag: Option<&'a TAG>

the tag of the target node to be inserted

node_idx: NodeIdx

the target node_idx of which our node will be inserted before it.

new_node_idx: NodeIdx

the new node_idx of this newly inserted node. this will be inserted into a fast lookup of NodeIdx to get the referenced node faster than having to traverse it.

node: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>

the node to be inserted

Implementations

create a new InsertNode patch

Trait Implementations

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.

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.