pub struct HunkDiff {
pub file_header: String,
pub content: String,
pub byte_len: usize,
}Expand description
A single hunk within one file’s diff.
Fields§
§file_header: StringThe file header lines (diff --git, index, ---, +++).
content: StringRaw text of this hunk starting from the @@ line.
byte_len: usizeByte length of file_header + content combined.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HunkDiff
impl RefUnwindSafe for HunkDiff
impl Send for HunkDiff
impl Sync for HunkDiff
impl Unpin for HunkDiff
impl UnsafeUnpin for HunkDiff
impl UnwindSafe for HunkDiff
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