pub enum Change {
Delete {
parent_id: GenericNodeId,
child_id: GenericNodeId,
},
Add {
parent_id: GenericNodeId,
child: Uninit<AnyNode>,
tag: ChildTag,
},
Replace {
from_id: GenericNodeId,
to: Uninit<AnyNode>,
},
DeleteSelf {
node_id: GenericNodeId,
},
}Expand description
Represents a modification of AST
Variants§
Delete
Child removed
Add
Child added
Replace
Replace itself with other node
DeleteSelf
Delete itself from ast hierarchy
Fields
§
node_id: GenericNodeIdImplementations§
Auto Trait Implementations§
impl !Freeze for Change
impl !RefUnwindSafe for Change
impl Send for Change
impl !Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
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