pub enum Edit {
Insert {
expression: Expression,
},
Remove {
expression: Expression,
},
Move {
source: Expression,
target: Expression,
},
Update {
source: Expression,
target: Expression,
},
Keep {
source: Expression,
target: Expression,
},
}Expand description
Types of edits that can occur between two ASTs
Variants§
Insert
A new node has been inserted
Fields
§
expression: ExpressionRemove
An existing node has been removed
Fields
§
expression: ExpressionMove
An existing node’s position has changed
Update
An existing node has been updated (same position, different value)
Keep
An existing node hasn’t been changed
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edit
impl<'de> Deserialize<'de> for Edit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnwindSafe for Edit
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