Struct mt_dom::patch::AddAttributes [−][src]
pub struct AddAttributes<'a, NS, TAG, ATT, VAL> where
NS: PartialEq + Clone + Debug,
TAG: PartialEq + Clone + Debug,
ATT: PartialEq + Clone + Debug,
VAL: PartialEq + Clone + Debug, { pub tag: &'a TAG, pub patch_path: TreePath, pub attrs: Vec<&'a Attribute<NS, ATT, VAL>>, }
Expand description
A patch where a new attributes is added to the target element
Fields
tag: &'a TAG
node tag use for verifying that the we are patching the correct node which should match the same tag
patch_path: TreePath
the path to traverse to get to the target lement of which we add the attributes.
attrs: Vec<&'a Attribute<NS, ATT, VAL>>
the attributes to be patched into 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 AddAttributes<'a, NS, TAG, ATT, VAL> where
ATT: RefUnwindSafe,
NS: RefUnwindSafe,
TAG: RefUnwindSafe,
VAL: RefUnwindSafe,
impl<'a, NS, TAG, ATT, VAL> Send for AddAttributes<'a, NS, TAG, ATT, VAL> where
ATT: Sync,
NS: Sync,
TAG: Sync,
VAL: Sync,
impl<'a, NS, TAG, ATT, VAL> Sync for AddAttributes<'a, NS, TAG, ATT, VAL> where
ATT: Sync,
NS: Sync,
TAG: Sync,
VAL: Sync,
impl<'a, NS, TAG, ATT, VAL> Unpin for AddAttributes<'a, NS, TAG, ATT, VAL>
impl<'a, NS, TAG, ATT, VAL> UnwindSafe for AddAttributes<'a, NS, TAG, ATT, VAL> where
ATT: RefUnwindSafe,
NS: RefUnwindSafe,
TAG: RefUnwindSafe,
VAL: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more