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 more