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 Forget for Mutation
impl Freeze for Mutationwhere
*const Descriptor is !null: Freeze,
PhantomData<Descriptor>: Freeze,
*const RcInner<Declaration> is !null: Freeze,
PhantomData<RcInner<Declaration>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<NodeId>: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<RichDocument> is !null: Freeze,
PhantomData<RcInner<RichDocument>>: Freeze,
PhantomData<SemanticId>: Freeze,
*const GraphicProps is !null: Freeze,
PhantomData<GraphicProps>: Freeze,
*const FileConfig is !null: Freeze,
PhantomData<FileConfig>: Freeze,
PhantomData<String>: Freeze,
*const Style is !null: Freeze,
PhantomData<Style>: Freeze,
*const Semantics is !null: Freeze,
PhantomData<Semantics>: Freeze,
impl Move for Mutation
impl Unpin for Mutation
impl UnsafeUnpin for Mutationwhere
*const Descriptor is !null: UnsafeUnpin,
PhantomData<Descriptor>: UnsafeUnpin,
*const RcInner<Declaration> is !null: UnsafeUnpin,
PhantomData<RcInner<Declaration>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<RichDocument> is !null: UnsafeUnpin,
PhantomData<RcInner<RichDocument>>: UnsafeUnpin,
PhantomData<SemanticId>: UnsafeUnpin,
*const GraphicProps is !null: UnsafeUnpin,
PhantomData<GraphicProps>: UnsafeUnpin,
*const FileConfig is !null: UnsafeUnpin,
PhantomData<FileConfig>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Style is !null: UnsafeUnpin,
PhantomData<Style>: UnsafeUnpin,
*const Semantics is !null: UnsafeUnpin,
PhantomData<Semantics>: UnsafeUnpin,
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