pub struct HighlightRequest {
pub key: HighlightKey,
pub hunk: HunkId,
pub row: RowId,
pub path: Option<PathBuf>,
pub source: HighlightSource,
}Expand description
Request sent from a visible diff viewport to a highlighter.
Fields§
§key: HighlightKeyStable cache key for this request.
hunk: HunkIdHunk containing the row.
row: RowIdRow to highlight.
path: Option<PathBuf>Source path used for syntax inference.
source: HighlightSourceSource-side text used for range highlighting.
Trait Implementations§
Source§impl Clone for HighlightRequest
impl Clone for HighlightRequest
Source§impl Debug for HighlightRequest
impl Debug for HighlightRequest
impl Eq for HighlightRequest
Source§impl PartialEq for HighlightRequest
impl PartialEq for HighlightRequest
impl StructuralPartialEq for HighlightRequest
Auto Trait Implementations§
impl Freeze for HighlightRequest
impl RefUnwindSafe for HighlightRequest
impl Send for HighlightRequest
impl Sync for HighlightRequest
impl Unpin for HighlightRequest
impl UnsafeUnpin for HighlightRequest
impl UnwindSafe for HighlightRequest
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