pub enum Edit {
Added {
path: String,
value: SExpr,
},
Removed {
path: String,
value: SExpr,
},
Changed {
path: String,
old: SExpr,
new: SExpr,
},
}Expand description
A single edit in a semantic diff.
Variants§
Added
A value appeared in the new tree at path that was absent in the old.
Removed
A value was present in the old tree at path but is absent in the new.
Changed
A leaf value at path changed from old to new.
Implementations§
Trait Implementations§
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 UnsafeUnpin 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