Struct mt_dom::patch::ReplaceNode [−][src]
pub struct ReplaceNode<'a, NS, TAG, ATT, VAL> where
NS: PartialEq + Clone + Debug,
TAG: PartialEq + Clone + Debug,
ATT: PartialEq + Clone + Debug,
VAL: PartialEq + Clone + Debug, {
pub tag: Option<&'a TAG>,
pub patch_path: TreePath,
pub replacement: &'a Node<NS, TAG, ATT, VAL>,
}
Expand description
A patch where a node is replaced by the replacement
node. The target node to be replaced
can be traverse using the patch_path
Fields
tag: Option<&'a TAG>
The tag of the node we are going to replace. This is only used for additional checking that we are removing the correct node.
patch_path: TreePath
the traversal path of the node we are going to replace
replacement: &'a Node<NS, TAG, ATT, VAL>
the node that will replace the target node
Implementations
Trait Implementations
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
impl<'a, NS, TAG, ATT, VAL> RefUnwindSafe for ReplaceNode<'a, NS, TAG, ATT, VAL> where
ATT: RefUnwindSafe,
NS: RefUnwindSafe,
TAG: RefUnwindSafe,
VAL: RefUnwindSafe,
impl<'a, NS, TAG, ATT, VAL> Send for ReplaceNode<'a, NS, TAG, ATT, VAL> where
ATT: Sync,
NS: Sync,
TAG: Sync,
VAL: Sync,
impl<'a, NS, TAG, ATT, VAL> Sync for ReplaceNode<'a, NS, TAG, ATT, VAL> where
ATT: Sync,
NS: Sync,
TAG: Sync,
VAL: Sync,
impl<'a, NS, TAG, ATT, VAL> Unpin for ReplaceNode<'a, NS, TAG, ATT, VAL>
impl<'a, NS, TAG, ATT, VAL> UnwindSafe for ReplaceNode<'a, NS, TAG, ATT, VAL> where
ATT: RefUnwindSafe,
NS: RefUnwindSafe,
TAG: RefUnwindSafe,
VAL: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more