pub struct DiffLine {
pub content: String,
pub line_type: DiffLineType,
pub old_line: Option<usize>,
pub new_line: Option<usize>,
}Expand description
A single line in a diff.
Fields§
§content: StringThe line content.
line_type: DiffLineTypeType of change.
old_line: Option<usize>Old line number (for removed/context lines).
new_line: Option<usize>New line number (for added/context lines).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffLine
impl RefUnwindSafe for DiffLine
impl Send for DiffLine
impl Sync for DiffLine
impl Unpin for DiffLine
impl UnwindSafe for DiffLine
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