Struct languageserver_types::TextDocumentEdit[][src]

pub struct TextDocumentEdit {
    pub text_document: VersionedTextDocumentIdentifier,
    pub edits: Vec<TextEdit>,
}

Describes textual changes on a single text document. The text document is referred to as a VersionedTextDocumentIdentifier to allow clients to check the text document version before an edit is applied. A TextDocumentEdit describes all changes on a version Si and after they are applied move the document to version Si+1. So the creator of a TextDocumentEdit doesn't need to sort the array or do any kind of ordering. However the edits must be non overlapping.

Fields

The text document to change.

The edits to be applied.

Trait Implementations

impl Debug for TextDocumentEdit
[src]

Formats the value using the given formatter. Read more

impl Eq for TextDocumentEdit
[src]

impl PartialEq for TextDocumentEdit
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for TextDocumentEdit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations