pub struct DiffView {
pub files: Vec<FileChange>,
pub hunks: Vec<Hunk>,
}Expand description
The canonical enumeration: every file, every hunk, no exclusions.
Fields§
§files: Vec<FileChange>§hunks: Vec<Hunk>Canonical order: file order in the diff, hunk order within each file.
A hunk’s id hN is its index here.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffView
impl RefUnwindSafe for DiffView
impl Send for DiffView
impl Sync for DiffView
impl Unpin for DiffView
impl UnsafeUnpin for DiffView
impl UnwindSafe for DiffView
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