Struct mt_dom::patch::RemoveAttributes [−][src]
pub struct RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG> { pub tag: &'a TAG, pub node_idx: NodeIdx, pub new_node_idx: NodeIdx, pub attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT, MSG>>, }
Expand description
Remove attributes that the old node had that the new node doesn’t
Fields
tag: &'a TAG
the tag of the node to be remove this is only used for verifying that we are patching the correct node
node_idx: NodeIdx
index of the node we are going to patch relative to the application root node
new_node_idx: NodeIdx
the new node_idx of the node we are removing attributes from
attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT, MSG>>
attributes that are to be removed from this target node
Implementations
Add attributes that the new node has that the old node does not Note: the attributes is not a reference since attributes of same name are merged to produce a new unify attribute
Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<RemoveAttributes<'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<RemoveAttributes<'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<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS: PartialEq, TAG: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq, MSG: PartialEq> PartialEq<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for RemoveAttributes<'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 RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
Auto Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !RefUnwindSafe for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Send for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Sync for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> Unpin for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !UnwindSafe for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>