[][src]Struct tamasfe_lsp_types::TextDocumentEdit

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

Describes textual changes on a single text document. The text document is referred to as a OptionalVersionedTextDocumentIdentifier 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: OptionalVersionedTextDocumentIdentifier

The text document to change.

edits: Vec<TextEdit>

Trait Implementations

impl Clone for TextDocumentEdit[src]

impl Debug for TextDocumentEdit[src]

impl<'de> Deserialize<'de> for TextDocumentEdit[src]

impl Eq for TextDocumentEdit[src]

impl PartialEq<TextDocumentEdit> for TextDocumentEdit[src]

impl Serialize for TextDocumentEdit[src]

impl StructuralEq for TextDocumentEdit[src]

impl StructuralPartialEq for TextDocumentEdit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.