pub struct DocumentHighlight {
pub range: Range,
pub kind: Option<DocumentHighlightKind>,
}Expand description
A highlighted region of a document.
Fields§
§range: RangeThe range to highlight.
kind: Option<DocumentHighlightKind>The kind of highlight, defaults to DocumentHighlightKind::Text
Trait Implementations§
Source§impl Debug for DocumentHighlight
impl Debug for DocumentHighlight
Auto Trait Implementations§
impl Freeze for DocumentHighlight
impl RefUnwindSafe for DocumentHighlight
impl Send for DocumentHighlight
impl Sync for DocumentHighlight
impl Unpin for DocumentHighlight
impl UnwindSafe for DocumentHighlight
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