pub struct DiffLine<'a> { /* fields omitted */ }
Expand description
Structure describing a line (or data span) of a diff.
Line number in old file or None
for added line
Line number in new file or None
for deleted line
Number of newline characters in content
Offset in the original file to the content
Content of this line as bytes.
Sigil showing the origin of this DiffLine
.
- Line context
+
- Line addition
-
- Line deletion
=
- Context (End of file)
>
- Add (End of file)
<
- Remove (End of file)
F
- File header
H
- Hunk header
B
- Line binary
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.