pub struct FileDiff {
pub path: String,
pub hunks: String,
pub has_changes: bool,
}Expand description
Represents the diff for a single file.
Fields§
§path: StringThe file path.
hunks: StringAll hunks concatenated into a single string, avoiding intermediate
Vec<String> allocation.
has_changes: boolWhether the file has any changes.
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