[]Struct sauron::prelude::mt_dom::patch::RemoveAttributes

pub struct RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG> {
    pub tag: &'a TAG,
    pub node_idx: usize,
    pub new_node_idx: usize,
    pub attrs: Vec<&'a Attribute<NS, ATT, VAL, EVENT, MSG>, Global>,
}

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, MSG>, Global>

attributes that are to be removed from this target node

Implementations

impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> RemoveAttributes<'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>
) -> RemoveAttributes<'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 RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG> where
    TAG: Debug,
    NS: Debug,
    ATT: Debug,
    VAL: Debug

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> PartialEq<RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for RemoveAttributes<'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>, 

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>[src]

impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Send for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]

impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Sync for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]

impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> Unpin for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]

impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !UnwindSafe for RemoveAttributes<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.