pub enum FlatOp {
Add(WireNode),
Remove {
row: WireRow,
},
Edit {
old: WireRow,
new: WireRow,
},
}Expand description
The op at the end of a flat change’s path (the reached level).
Variants§
Add(WireNode)
Insert node (with its inline, slot-keyed, pre-sorted subtree).
Remove
Remove the row at this level. Row-only — the View’s remove path consumes
only node.row (the drained subtree the nested CaughtChange::Remove carries
is intentionally dropped).
Edit
Edit: old locates, new places (both required, at every depth — the
receiver needs old to find the entry even when the sort key moved).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlatOp
impl<'de> Deserialize<'de> for FlatOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FlatOp
impl RefUnwindSafe for FlatOp
impl Send for FlatOp
impl Sync for FlatOp
impl Unpin for FlatOp
impl UnsafeUnpin for FlatOp
impl UnwindSafe for FlatOp
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