pub struct FileHunks {
pub path: String,
pub status: FileStatus,
pub hunks: Vec<Hunk>,
pub oversize: bool,
}Expand description
One file’s worth of hunks, ordered as git diff emitted them.
Fields§
§path: String§status: FileStatus§hunks: Vec<Hunk>§oversize: boolThe full-context fetch tripped the oversize cap, so hunks is a
bounded fallback (or empty) rather than the pinned snapshot the
overlay expands from. The overlay renders it normally but disables
context expansion for this file.
Implementations§
Source§impl FileHunks
impl FileHunks
Sourcepub fn added_count(&self) -> u32
pub fn added_count(&self) -> u32
Total additions across all hunks in this file.
Sourcepub fn removed_count(&self) -> u32
pub fn removed_count(&self) -> u32
Total removals across all hunks in this file.
Trait Implementations§
impl Eq for FileHunks
impl StructuralPartialEq for FileHunks
Auto Trait Implementations§
impl Freeze for FileHunks
impl RefUnwindSafe for FileHunks
impl Send for FileHunks
impl Sync for FileHunks
impl Unpin for FileHunks
impl UnsafeUnpin for FileHunks
impl UnwindSafe for FileHunks
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.