pub struct HighlightResult {
pub key: HighlightKey,
pub hunk: HunkId,
pub row: RowId,
pub line: Line,
}Expand description
Highlighted line returned by a worker.
Fields§
§key: HighlightKeyCache key copied from the original request.
hunk: HunkIdHunk containing the highlighted row.
row: RowIdHighlighted row.
line: LineRenderable highlighted line.
Implementations§
Source§impl HighlightResult
impl HighlightResult
Sourcepub fn new(request: HighlightRequest, line: Line) -> Self
pub fn new(request: HighlightRequest, line: Line) -> Self
Pairs a highlighted line with the metadata copied from its request.
Trait Implementations§
Source§impl Clone for HighlightResult
impl Clone for HighlightResult
Auto Trait Implementations§
impl Freeze for HighlightResult
impl RefUnwindSafe for HighlightResult
impl Send for HighlightResult
impl Sync for HighlightResult
impl Unpin for HighlightResult
impl UnsafeUnpin for HighlightResult
impl UnwindSafe for HighlightResult
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