Struct sauron::prelude::mt_dom::patch::RemoveNode [−]
pub struct RemoveNode<'a, TAG> where
TAG: PartialEq<TAG> + Clone + Debug, { pub tag: Option<&'a TAG>, pub node_idx: usize, }
Expand description
remove the node at this NodeIdx
Fields
tag: Option<&'a TAG>
the tag of the node that is to be removed
node_idx: usize
the node_idx of the node to be removed
Implementations
impl<'a, TAG> RemoveNode<'a, TAG> where
TAG: PartialEq<TAG> + Clone + Debug,
impl<'a, TAG> RemoveNode<'a, TAG> where
TAG: PartialEq<TAG> + Clone + Debug,
pub fn new(tag: Option<&'a TAG>, node_idx: usize) -> RemoveNode<'a, TAG>
pub fn new(tag: Option<&'a TAG>, node_idx: usize) -> RemoveNode<'a, TAG>
create a new RemoveNode patch
Trait Implementations
impl<'a, TAG> Clone for RemoveNode<'a, TAG> where
TAG: Clone + PartialEq<TAG> + Debug,
impl<'a, TAG> Clone for RemoveNode<'a, TAG> where
TAG: Clone + PartialEq<TAG> + Debug,
pub fn clone(&self) -> RemoveNode<'a, TAG>
pub fn clone(&self) -> RemoveNode<'a, TAG>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<'a, TAG> Debug for RemoveNode<'a, TAG> where
TAG: Debug + PartialEq<TAG> + Clone,
impl<'a, TAG> Debug for RemoveNode<'a, TAG> where
TAG: Debug + PartialEq<TAG> + Clone,
pub fn from(rc: RemoveNode<'a, TAG>) -> Patch<'a, NS, TAG, ATT, VAL, EVENT>
pub fn from(rc: RemoveNode<'a, TAG>) -> Patch<'a, NS, TAG, ATT, VAL, EVENT>
Performs the conversion.
impl<'a, TAG> PartialEq<RemoveNode<'a, TAG>> for RemoveNode<'a, TAG> where
TAG: PartialEq<TAG> + Clone + Debug,
impl<'a, TAG> PartialEq<RemoveNode<'a, TAG>> for RemoveNode<'a, TAG> where
TAG: PartialEq<TAG> + Clone + Debug,
pub fn eq(&self, other: &RemoveNode<'a, TAG>) -> bool
pub fn eq(&self, other: &RemoveNode<'a, TAG>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &RemoveNode<'a, TAG>) -> bool
pub fn ne(&self, other: &RemoveNode<'a, TAG>) -> bool
This method tests for !=
.
impl<'a, TAG> StructuralPartialEq for RemoveNode<'a, TAG> where
TAG: PartialEq<TAG> + Clone + Debug,
Auto Trait Implementations
impl<'a, TAG> RefUnwindSafe for RemoveNode<'a, TAG> where
TAG: RefUnwindSafe,
impl<'a, TAG> Send for RemoveNode<'a, TAG> where
TAG: Sync,
impl<'a, TAG> Sync for RemoveNode<'a, TAG> where
TAG: Sync,
impl<'a, TAG> Unpin for RemoveNode<'a, TAG>
impl<'a, TAG> UnwindSafe for RemoveNode<'a, TAG> where
TAG: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more