Struct sauron::prelude::mt_dom::patch::AppendChildren [−]
pub struct AppendChildren<'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 children: Vec<(usize, &'a Node<NS, TAG, ATT, VAL, EVENT>), Global>, }
Expand description
Append a vector of child nodes to a parent node id.
Fields
tag: &'a TAG
the tag of the node we are appending the children into
node_idx: usize
index of the node we are going to append the children into
children: Vec<(usize, &'a Node<NS, TAG, ATT, VAL, EVENT>), Global>
children nodes to be appended and their corresponding new_node_idx
Implementations
Trait Implementations
pub fn clone(&self) -> AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>
pub fn clone(&self) -> AppendChildren<'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<AppendChildren<'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<AppendChildren<'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(
ac: AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>
) -> Patch<'a, NS, TAG, ATT, VAL, EVENT>
pub fn from(
ac: AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>
) -> Patch<'a, NS, TAG, ATT, VAL, EVENT>
Performs the conversion.
impl<'a, NS, TAG, ATT, VAL, EVENT> PartialEq<AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>> for AppendChildren<'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<AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>> for AppendChildren<'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: &AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
pub fn eq(&self, other: &AppendChildren<'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: &AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
pub fn ne(&self, other: &AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT> RefUnwindSafe for AppendChildren<'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 AppendChildren<'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 AppendChildren<'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 AppendChildren<'a, NS, TAG, ATT, VAL, EVENT>
impl<'a, NS, TAG, ATT, VAL, EVENT> UnwindSafe for AppendChildren<'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