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
Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
Performs the conversion.
impl<'a, NS: PartialEq, TAG: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq, MSG: PartialEq> PartialEq<InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS: PartialEq, TAG: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq, MSG: PartialEq> PartialEq<InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> StructuralPartialEq for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
Auto Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !RefUnwindSafe for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Send for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Sync for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> Unpin for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !UnwindSafe for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>