pub enum ChangeAction {
Remove(AstNode),
Insert(AstNode),
Keep(AstNode, AstNode),
Move(AstNode, AstNode),
Update(AstNode, AstNode),
}Expand description
A change action describing a single difference between two ASTs.
Variants§
Remove(AstNode)
A node present in source that was removed.
Insert(AstNode)
A node inserted into target that was not in source.
Keep(AstNode, AstNode)
A node that is structurally identical in both trees.
Move(AstNode, AstNode)
A node that was moved to a different position in the tree.
Update(AstNode, AstNode)
A node in source that was replaced by a different node in target.
Trait Implementations§
Source§impl Clone for ChangeAction
impl Clone for ChangeAction
Source§fn clone(&self) -> ChangeAction
fn clone(&self) -> ChangeAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangeAction
impl Debug for ChangeAction
Source§impl PartialEq for ChangeAction
impl PartialEq for ChangeAction
impl StructuralPartialEq for ChangeAction
Auto Trait Implementations§
impl Freeze for ChangeAction
impl RefUnwindSafe for ChangeAction
impl Send for ChangeAction
impl Sync for ChangeAction
impl Unpin for ChangeAction
impl UnsafeUnpin for ChangeAction
impl UnwindSafe for ChangeAction
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