pub enum DeltaOp {
SetRoot(Option<NodeId>),
PutNode {
target: NodeId,
fragment: Box<InfinityModule>,
},
SetBinding {
name: String,
node: NodeId,
},
RemoveBinding {
name: String,
},
SetAnnotation {
node: NodeId,
kind: AnnotationKind,
},
ClearAnnotations,
SetProvenance(Option<Provenance>),
}Expand description
A semantic delta operation.
Variants§
SetRoot(Option<NodeId>)
Replace the module root.
PutNode
Replace the content of target with a fragment module’s node 0.
SetBinding
Bind (or rebind) a name.
RemoveBinding
Remove a binding by name (no-op when absent).
SetAnnotation
Append an annotation.
ClearAnnotations
Drop every annotation.
SetProvenance(Option<Provenance>)
Replace provenance.
Trait Implementations§
impl StructuralPartialEq for DeltaOp
Auto Trait Implementations§
impl Freeze for DeltaOp
impl RefUnwindSafe for DeltaOp
impl Send for DeltaOp
impl Sync for DeltaOp
impl Unpin for DeltaOp
impl UnsafeUnpin for DeltaOp
impl UnwindSafe for DeltaOp
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