pub struct TreeDiffStructured {
pub entry: DiffEntry,
pub structured: StructuredFileDiff,
pub binary: bool,
pub patch_bytes: Option<(SideBytes, SideBytes)>,
}Expand description
Tree diff entry with structured line hunks ready for CLI rendering.
Fields§
§entry: DiffEntryTree diff metadata (paths, modes, oids, status).
structured: StructuredFileDiffStructured hunks and mode metadata.
binary: booltrue when either side looks like a binary blob (NUL in the first 8 KiB).
patch_bytes: Option<(SideBytes, SideBytes)>Worktree/index side bytes when content is not materialized in the ODB.
Trait Implementations§
Source§impl Clone for TreeDiffStructured
impl Clone for TreeDiffStructured
Source§impl Debug for TreeDiffStructured
impl Debug for TreeDiffStructured
impl Eq for TreeDiffStructured
Source§impl PartialEq for TreeDiffStructured
impl PartialEq for TreeDiffStructured
impl StructuralPartialEq for TreeDiffStructured
Auto Trait Implementations§
impl Freeze for TreeDiffStructured
impl RefUnwindSafe for TreeDiffStructured
impl Send for TreeDiffStructured
impl Sync for TreeDiffStructured
impl Unpin for TreeDiffStructured
impl UnsafeUnpin for TreeDiffStructured
impl UnwindSafe for TreeDiffStructured
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