[−][src]Struct mt_dom::patch::InsertNode
InsertNode patch contains the a node to insert into
Fields
tag: Option<&'a TAG>the tag of the target node to be inserted
node_idx: NodeIdxthe target node_idx of which our node will be inserted before it.
new_node_idx: NodeIdxthe new node_idx of this newly inserted node. this will be inserted into a fast lookup of NodeIdx to get the referenced node faster than having to traverse it.
node: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>the node to be inserted
Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]
pub fn new(
tag: Option<&'a TAG>,
node_idx: NodeIdx,
new_node_idx: NodeIdx,
node: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>
) -> Self[src]
tag: Option<&'a TAG>,
node_idx: NodeIdx,
new_node_idx: NodeIdx,
node: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>
) -> Self
create a new InsertNode patch
Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> Debug for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG> where
NS: Debug,
TAG: Debug,
ATT: Debug,
VAL: Debug, [src]
NS: Debug,
TAG: Debug,
ATT: Debug,
VAL: Debug,
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> From<InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]
fn from(ic: InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>) -> Self[src]
impl<'a, NS: PartialEq, TAG: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq, MSG: PartialEq> PartialEq<InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>> for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]
fn eq(&self, other: &InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>) -> bool[src]
fn ne(&self, other: &InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>) -> bool[src]
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> StructuralPartialEq for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>[src]
Auto Trait Implementations
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !RefUnwindSafe for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Send for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !Sync for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> Unpin for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
impl<'a, NS, TAG, ATT, VAL, EVENT, MSG> !UnwindSafe for InsertNode<'a, NS, TAG, ATT, VAL, EVENT, MSG>
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,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
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.
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>,