Struct lsp::types::DocumentHighlight [−][src]
pub struct DocumentHighlight { pub range: Range, pub kind: Option<DocumentHighlightKind>, }
A document highlight is a range inside a text document which deserves special attention. Usually a document highlight is visualized by changing the background color of its range.
Fields
range: Range
The range this highlight applies to.
kind: Option<DocumentHighlightKind>
The highlight kind, default is text.
Methods
impl DocumentHighlight
[src]
impl DocumentHighlight
DocumentHighlight namespace to provide helper functions to work with DocumentHighlight literals.
pub fn create(range: Range, kind: Option<DocumentHighlightKind>) -> Self
[src]
pub fn create(range: Range, kind: Option<DocumentHighlightKind>) -> Self
Create a DocumentHighlight object. @param range The range the highlight applies to.
Trait Implementations
impl Debug for DocumentHighlight
[src]
impl Debug for DocumentHighlight
Auto Trait Implementations
impl Send for DocumentHighlight
impl Send for DocumentHighlight
impl Sync for DocumentHighlight
impl Sync for DocumentHighlight