Struct mt_dom::patch::AddAttributes [−][src]
pub struct AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
NS: PartialEq + Clone + Debug,
TAG: PartialEq + Clone + Debug,
ATT: PartialEq + Clone + Debug,
VAL: PartialEq + Clone + Debug,
EVENT: PartialEq + Clone + Debug, { pub tag: &'a TAG, pub node_idx: NodeIdx, pub new_node_idx: NodeIdx, pub attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT>>, }
Expand description
Add attributes
Fields
tag: &'a TAG
node tag use for verifying that the we are patching the correct node which should match the same tag
node_idx: NodeIdx
index of the node we are going to patch
new_node_idx: NodeIdx
new node_idx of the node we are adding an attribute to
attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT>>
the attributes to be patched into the 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
Performs the conversion.
impl<'a, NS: PartialEq, TAG: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq> PartialEq<AddAttributes<'a, NS, TAG, ATT, VAL, EVENT>> for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
NS: PartialEq + Clone + Debug,
TAG: PartialEq + Clone + Debug,
ATT: PartialEq + Clone + Debug,
VAL: PartialEq + Clone + Debug,
EVENT: PartialEq + Clone + Debug,
impl<'a, NS: PartialEq, TAG: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq> PartialEq<AddAttributes<'a, NS, TAG, ATT, VAL, EVENT>> for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
NS: PartialEq + Clone + Debug,
TAG: PartialEq + Clone + Debug,
ATT: PartialEq + Clone + Debug,
VAL: PartialEq + Clone + Debug,
EVENT: PartialEq + Clone + Debug,
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, EVENT> RefUnwindSafe for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
ATT: RefUnwindSafe,
EVENT: RefUnwindSafe,
NS: RefUnwindSafe,
TAG: RefUnwindSafe,
VAL: RefUnwindSafe,
impl<'a, NS, TAG, ATT, VAL, EVENT> Send for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
ATT: Sync,
EVENT: Sync,
NS: Sync,
TAG: Sync,
VAL: Sync,
impl<'a, NS, TAG, ATT, VAL, EVENT> Sync for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
ATT: Sync,
EVENT: Sync,
NS: Sync,
TAG: Sync,
VAL: Sync,
impl<'a, NS, TAG, ATT, VAL, EVENT> Unpin for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT>
impl<'a, NS, TAG, ATT, VAL, EVENT> UnwindSafe for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
ATT: RefUnwindSafe,
EVENT: RefUnwindSafe,
NS: RefUnwindSafe,
TAG: RefUnwindSafe,
VAL: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more