pub enum Mutation {
Create {
id: NodeId,
node: Box<Descriptor>,
},
CreatePlan {
plan: Plan,
ids: Vec<NodeId>,
},
Patch {
id: NodeId,
patch: Patch,
},
Place {
id: NodeId,
parent: Option<NodeId>,
before: Option<NodeId>,
},
Suspend {
id: NodeId,
},
Resume {
id: NodeId,
parent: Option<NodeId>,
before: Option<NodeId>,
},
Dispose {
id: NodeId,
},
}Variants§
Create
CreatePlan
One validated, detached construction unit. Internal placement belongs to this mutation; attach/move its root with a subsequent Place.
Patch
Place
None parent places a root. Existing nodes move, preserving identity.
Suspend
Disconnect a range, preserving nodes and identities until Resume/Dispose.
Resume
Dispose
Permanently release this subtree, including suspended descendants.
Trait Implementations§
impl StructuralPartialEq for Mutation
Auto Trait Implementations§
impl !RefUnwindSafe for Mutation
impl !Send for Mutation
impl !Sync for Mutation
impl !UnwindSafe for Mutation
impl Freeze for Mutation
impl Unpin for Mutation
impl UnsafeUnpin for Mutation
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