pub struct TreeDiffContent {
pub entry: DiffEntry,
pub old_bytes: SideBytes,
pub new_bytes: SideBytes,
pub binary: bool,
}Expand description
One tree diff entry with both sides loaded for line-level diffing.
Fields§
§entry: DiffEntryTree diff metadata (paths, modes, oids, status).
old_bytes: SideBytesOld-side bytes prepared for super::structured::structured_text_diff.
new_bytes: SideBytesNew-side bytes prepared for structured diffing.
binary: booltrue when either side looks like a binary blob (NUL in the first 8 KiB).
Trait Implementations§
Source§impl Clone for TreeDiffContent
impl Clone for TreeDiffContent
Source§impl Debug for TreeDiffContent
impl Debug for TreeDiffContent
impl Eq for TreeDiffContent
Source§impl PartialEq for TreeDiffContent
impl PartialEq for TreeDiffContent
impl StructuralPartialEq for TreeDiffContent
Auto Trait Implementations§
impl Freeze for TreeDiffContent
impl RefUnwindSafe for TreeDiffContent
impl Send for TreeDiffContent
impl Sync for TreeDiffContent
impl Unpin for TreeDiffContent
impl UnsafeUnpin for TreeDiffContent
impl UnwindSafe for TreeDiffContent
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