Struct mt_dom::patch::RemoveNode [−][src]
pub struct RemoveNode<'a, TAG> where
TAG: PartialEq + Clone + Debug, { pub tag: Option<&'a TAG>, pub patch_path: TreePath, }
Expand description
A patch where the target element that can be traverse using the patch_path will be remove.
Fields
tag: Option<&'a TAG>
The tag of the node that is to be removed. This is only used for additional check where are removing the correct node.
patch_path: TreePath
the node_idx of the node to be removed
Implementations
Trait Implementations
Performs the conversion.
impl<'a, TAG: PartialEq> PartialEq<RemoveNode<'a, TAG>> for RemoveNode<'a, TAG> where
TAG: PartialEq + Clone + Debug,
impl<'a, TAG: PartialEq> PartialEq<RemoveNode<'a, TAG>> for RemoveNode<'a, TAG> where
TAG: PartialEq + Clone + Debug,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<'a, TAG> StructuralPartialEq for RemoveNode<'a, TAG> where
TAG: PartialEq + Clone + Debug,
Auto Trait Implementations
impl<'a, TAG> RefUnwindSafe for RemoveNode<'a, TAG> where
TAG: RefUnwindSafe,
impl<'a, TAG> Send for RemoveNode<'a, TAG> where
TAG: Sync,
impl<'a, TAG> Sync for RemoveNode<'a, TAG> where
TAG: Sync,
impl<'a, TAG> Unpin for RemoveNode<'a, TAG>
impl<'a, TAG> UnwindSafe for RemoveNode<'a, TAG> where
TAG: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more