pub struct FileDiff {
pub path: String,
pub content: String,
pub byte_len: usize,
}Expand description
A per-file slice of a unified diff.
Fields§
§path: StringPath of the file (extracted from the b/ side of diff --git a/... b/...).
content: StringRaw text of this file’s diff (header + all hunks).
byte_len: usizeByte length of content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileDiff
impl RefUnwindSafe for FileDiff
impl Send for FileDiff
impl Sync for FileDiff
impl Unpin for FileDiff
impl UnsafeUnpin for FileDiff
impl UnwindSafe for FileDiff
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