pub struct HunkSequence<'a> {
pub id: SourceSequenceId,
pub path: &'a str,
pub target_line: usize,
/* private fields */
}Expand description
Renderer-neutral description of the hunk-side line sequence containing a patch cell, used to keep multiline syntax context for patch-only files.
Fields§
§id: SourceSequenceIdContent-derived, snapshot-local cache identity for this side’s lines.
path: &'a strSide-specific repository path usable as a syntax language hint.
target_line: usizeZero-based index of the cell’s line within Self::lines.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HunkSequence<'a>
impl<'a> RefUnwindSafe for HunkSequence<'a>
impl<'a> Send for HunkSequence<'a>
impl<'a> Sync for HunkSequence<'a>
impl<'a> Unpin for HunkSequence<'a>
impl<'a> UnsafeUnpin for HunkSequence<'a>
impl<'a> UnwindSafe for HunkSequence<'a>
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