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
text_document: VersionedTextDocumentIdentifier
The text document to change.
edits: Vec<TextEdit>
The edits to be applied.
Trait Implementations
impl Debug for TextDocumentEdit[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for TextDocumentEdit[src]
impl PartialEq for TextDocumentEdit[src]
fn eq(&self, __arg_0: &TextDocumentEdit) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TextDocumentEdit) -> bool[src]
This method tests for !=.
impl Clone for TextDocumentEdit[src]
fn clone(&self) -> TextDocumentEdit[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more