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