Struct sauron::prelude::mt_dom::patch::RemoveAttributes [−]
pub struct RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
TAG: PartialEq<TAG> + Clone + Debug,
NS: PartialEq<NS> + Clone + Debug,
ATT: PartialEq<ATT> + Clone + Debug,
VAL: PartialEq<VAL> + Clone + Debug,
EVENT: PartialEq<EVENT> + Clone + Debug, { pub tag: &'a TAG, pub node_idx: usize, pub new_node_idx: usize, pub attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT>, Global>, }
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: usize
index of the node we are going to patch relative to the application root node
new_node_idx: usize
the new node_idx of the node we are removing attributes from
attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT>, Global>
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
pub fn clone(&self) -> RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>
pub fn clone(&self) -> RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<'a, NS, TAG, ATT, VAL, EVENT> From<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>> for Patch<'a, NS, TAG, ATT, VAL, EVENT> where
TAG: PartialEq<TAG> + Clone + Debug,
NS: PartialEq<NS> + Clone + Debug,
ATT: PartialEq<ATT> + Clone + Debug,
VAL: PartialEq<VAL> + Clone + Debug,
EVENT: PartialEq<EVENT> + Clone + Debug,
impl<'a, NS, TAG, ATT, VAL, EVENT> From<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>> for Patch<'a, NS, TAG, ATT, VAL, EVENT> where
TAG: PartialEq<TAG> + Clone + Debug,
NS: PartialEq<NS> + Clone + Debug,
ATT: PartialEq<ATT> + Clone + Debug,
VAL: PartialEq<VAL> + Clone + Debug,
EVENT: PartialEq<EVENT> + Clone + Debug,
pub fn from(
rt: RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>
) -> Patch<'a, NS, TAG, ATT, VAL, EVENT>
pub fn from(
rt: RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>
) -> Patch<'a, NS, TAG, ATT, VAL, EVENT>
Performs the conversion.
impl<'a, NS, TAG, ATT, VAL, EVENT> PartialEq<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>> for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
TAG: PartialEq<TAG> + Clone + Debug,
NS: PartialEq<NS> + Clone + Debug,
ATT: PartialEq<ATT> + Clone + Debug,
VAL: PartialEq<VAL> + Clone + Debug,
EVENT: PartialEq<EVENT> + Clone + Debug,
impl<'a, NS, TAG, ATT, VAL, EVENT> PartialEq<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>> for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT> where
TAG: PartialEq<TAG> + Clone + Debug,
NS: PartialEq<NS> + Clone + Debug,
ATT: PartialEq<ATT> + Clone + Debug,
VAL: PartialEq<VAL> + Clone + Debug,
EVENT: PartialEq<EVENT> + Clone + Debug,
pub fn eq(&self, other: &RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
pub fn eq(&self, other: &RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
pub fn ne(&self, other: &RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT> RefUnwindSafe for RemoveAttributes<'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 RemoveAttributes<'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 RemoveAttributes<'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 RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT>
impl<'a, NS, TAG, ATT, VAL, EVENT> UnwindSafe for RemoveAttributes<'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