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

The range this highlight applies to.

The highlight kind, default is text.

Methods

impl DocumentHighlight
[src]

DocumentHighlight namespace to provide helper functions to work with DocumentHighlight literals.

Create a DocumentHighlight object. @param range The range the highlight applies to.

Trait Implementations

impl Debug for DocumentHighlight
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations