Enum respo::ChildDomOp
source · pub enum ChildDomOp<T>where
T: Debug + Clone,{
InsertAfter(u32, RespoIndexKey, RespoNode<T>),
RemoveAt(u32),
Append(RespoIndexKey, RespoNode<T>),
Prepend(RespoIndexKey, RespoNode<T>),
NestedEffect {
nested_coord: Vec<RespoCoord>,
nested_dom_path: Vec<u32>,
effect_type: RespoEffectType,
skip_indexes: HashSet<u32>,
},
}
Expand description
used in list diffing, this is still part of DomChange
Variants§
InsertAfter(u32, RespoIndexKey, RespoNode<T>)
RemoveAt(u32)
Append(RespoIndexKey, RespoNode<T>)
Prepend(RespoIndexKey, RespoNode<T>)
NestedEffect
order is required in operating children elements, so put effect inside
Trait Implementations§
source§impl<T> Clone for ChildDomOp<T>where
T: Debug + Clone + Clone,
impl<T> Clone for ChildDomOp<T>where T: Debug + Clone + Clone,
source§fn clone(&self) -> ChildDomOp<T>
fn clone(&self) -> ChildDomOp<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for ChildDomOp<T>
impl<T> !Send for ChildDomOp<T>
impl<T> !Sync for ChildDomOp<T>
impl<T> Unpin for ChildDomOp<T>
impl<T> !UnwindSafe for ChildDomOp<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more