pub struct Highlight {
pub span: Span,
pub tag: HighlightTag,
}Expand description
A highlight range paired with its semantic tag.
Fields§
§span: SpanSource span where the highlight applies.
tag: HighlightTagSemantic highlight classification for the span.
Trait Implementations§
impl StructuralPartialEq for Highlight
Auto Trait Implementations§
impl Freeze for Highlight
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnsafeUnpin for Highlight
impl UnwindSafe for Highlight
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