Struct languageserver_types::TextDocumentEdit
source · pub struct TextDocumentEdit {
pub text_document: VersionedTextDocumentIdentifier,
pub edits: Vec<TextEdit>,
}
Expand description
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§
source§impl Clone for TextDocumentEdit
impl Clone for TextDocumentEdit
source§fn clone(&self) -> TextDocumentEdit
fn clone(&self) -> TextDocumentEdit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextDocumentEdit
impl Debug for TextDocumentEdit
source§impl<'de> Deserialize<'de> for TextDocumentEdit
impl<'de> Deserialize<'de> for TextDocumentEdit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more