pub struct DiffRow {
pub kind: DiffRowKind,
pub marker: char,
pub hunk_index: Option<usize>,
pub continuation: bool,
pub left: Option<DiffCell>,
pub right: Option<DiffCell>,
}Expand description
A renderer-neutral row, optionally containing paired side-by-side cells.
Fields§
§kind: DiffRowKindSemantic role.
marker: charMarker for unified renderers and simple inspection.
hunk_index: Option<usize>Stable zero-based hunk identity.
continuation: boolWhether this row continues a hard-wrapped source line.
left: Option<DiffCell>Unified or old-side cell.
right: Option<DiffCell>New-side cell in side-by-side mode.
Trait Implementations§
impl Eq for DiffRow
impl StructuralPartialEq for DiffRow
Auto Trait Implementations§
impl Freeze for DiffRow
impl RefUnwindSafe for DiffRow
impl Send for DiffRow
impl Sync for DiffRow
impl Unpin for DiffRow
impl UnsafeUnpin for DiffRow
impl UnwindSafe for DiffRow
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.