pub enum DiffOp {
Insert {
id: WidgetId,
parent: WidgetId,
index: usize,
},
Remove {
id: WidgetId,
},
Update {
id: WidgetId,
},
Move {
id: WidgetId,
parent: WidgetId,
index: usize,
},
}Expand description
A single reconciliation operation produced by diff.
Variants§
Insert
A new node id was added as a child of parent at child-list index
index.
Fields
Remove
Node id (and its subtree) was removed.
Update
Node id persists but one or more of its paint-relevant fields changed.
Move
Node id kept its parent but moved to a new index within the child list.
Trait Implementations§
impl StructuralPartialEq for DiffOp
Auto Trait Implementations§
impl Freeze for DiffOp
impl RefUnwindSafe for DiffOp
impl Send for DiffOp
impl Sync for DiffOp
impl Unpin for DiffOp
impl UnsafeUnpin for DiffOp
impl UnwindSafe for DiffOp
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