[−]Struct sauron::prelude::mt_dom::patch::AddAttributes
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: usize
index of the node we are going to patch
new_node_idx: usize
new node_idx of the node we are adding an attribute to
attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT, MSG>, Global>
the attributes to be patched into the target node
Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
pub fn new(
tag: &'a TAG,
node_idx: usize,
new_node_idx: usize,
attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT, MSG>, Global>
) -> AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
tag: &'a TAG,
node_idx: usize,
new_node_idx: usize,
attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT, MSG>, Global>
) -> AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
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> Debug for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG> where
TAG: Debug,
NS: Debug,
ATT: Debug,
VAL: Debug,
TAG: Debug,
NS: Debug,
ATT: Debug,
VAL: Debug,
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
pub fn from(
at: AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
) -> Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
at: AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
) -> Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> PartialEq<AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG> where
MSG: PartialEq<MSG>,
TAG: PartialEq<TAG>,
NS: PartialEq<NS>,
ATT: PartialEq<ATT>,
VAL: PartialEq<VAL>,
EVENT: PartialEq<EVENT>,
MSG: PartialEq<MSG>,
TAG: PartialEq<TAG>,
NS: PartialEq<NS>,
ATT: PartialEq<ATT>,
VAL: PartialEq<VAL>,
EVENT: PartialEq<EVENT>,
pub fn eq(
&self,
other: &AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
) -> bool
&self,
other: &AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
) -> bool
pub fn ne(
&self,
other: &AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
) -> bool
&self,
other: &AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
) -> bool
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> StructuralPartialEq for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
Auto Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !RefUnwindSafe for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
[src]
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Send for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
[src]
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Sync for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
[src]
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> Unpin for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
[src]
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !UnwindSafe for AddAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,