pub struct DiffChange {
pub op: DiffOp,
pub text: String,
pub old_line: Option<usize>,
pub new_line: Option<usize>,
}Expand description
A single change in a diff
Fields§
§op: DiffOpThe operation type
text: StringThe text content
old_line: Option<usize>Line number in old text (for line diffs)
new_line: Option<usize>Line number in new text (for line diffs)
Implementations§
Source§impl DiffChange
impl DiffChange
Trait Implementations§
Source§impl Clone for DiffChange
impl Clone for DiffChange
Source§fn clone(&self) -> DiffChange
fn clone(&self) -> DiffChange
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 DiffChange
impl Debug for DiffChange
Source§impl PartialEq for DiffChange
impl PartialEq for DiffChange
impl Eq for DiffChange
impl StructuralPartialEq for DiffChange
Auto Trait Implementations§
impl Freeze for DiffChange
impl RefUnwindSafe for DiffChange
impl Send for DiffChange
impl Sync for DiffChange
impl Unpin for DiffChange
impl UnsafeUnpin for DiffChange
impl UnwindSafe for DiffChange
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