pub struct DeclEdit {
pub kind: EditKind,
pub old_idx: Option<usize>,
pub new_idx: Option<usize>,
pub fingerprint: DeclFingerprint,
}Expand description
A single entry in the diff edit script produced by diff_modules.
Fields§
§kind: EditKindKind of change.
old_idx: Option<usize>Index in the old declaration sequence, or None for Inserted.
new_idx: Option<usize>Index in the new declaration sequence, or None for Deleted.
fingerprint: DeclFingerprintFingerprint of the “surviving” declaration:
Unchanged,Inserted,Modified→ fingerprint of the new decl.Deleted→ fingerprint of the old decl.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeclEdit
impl RefUnwindSafe for DeclEdit
impl Send for DeclEdit
impl Sync for DeclEdit
impl Unpin for DeclEdit
impl UnsafeUnpin for DeclEdit
impl UnwindSafe for DeclEdit
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