pub enum DiffOp {
Insert {
path: Vec<usize>,
index: usize,
type_id: TypeId,
props_hash: u64,
},
Remove {
path: Vec<usize>,
},
Update {
path: Vec<usize>,
new_props_hash: u64,
},
Move {
from_path: Vec<usize>,
to_path: Vec<usize>,
},
Replace {
path: Vec<usize>,
new_type_id: TypeId,
new_props_hash: u64,
},
}Expand description
Operation to apply during reconciliation.
Variants§
Insert
Insert a new widget at path
Fields
Remove
Remove widget at path
Update
Update widget properties at path
Move
Move widget from one position to another
Replace
Replace widget with different type
Trait Implementations§
impl Eq for DiffOp
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 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