pub struct Gap {
pub before_hunk: usize,
pub old_start: u32,
pub new_start: u32,
pub len: u32,
pub expandable: bool,
}Expand description
An unchanged range between hunks (or before the first, or after the last), which a view shows collapsed.
Fields§
§before_hunk: usizeThe hunk this gap comes before (hunks.len() for the gap after the last hunk).
old_start: u32First hidden line, 1-based, in the old and the new text.
new_start: u32§len: u32Number of hidden lines.
expandable: boolThe lines’ text is known (FileDiff::source_line), so the gap can be expanded.
Trait Implementations§
impl Copy for Gap
impl Eq for Gap
impl StructuralPartialEq for Gap
Auto Trait Implementations§
impl Forget for Gap
impl Freeze for Gap
impl Move for Gap
impl RefUnwindSafe for Gap
impl Send for Gap
impl Sync for Gap
impl Unpin for Gap
impl UnsafeUnpin for Gap
impl UnwindSafe for Gap
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