[][src]Struct lsp_types::TextDocumentContentChangeEvent

pub struct TextDocumentContentChangeEvent {
    pub range: Option<Range>,
    pub range_length: Option<u64>,
    pub text: String,
}

An event describing a change to a text document. If range and rangeLength are omitted the new text is considered to be the full content of the document.

Fields

range: Option<Range>

The range of the document that changed.

range_length: Option<u64>

The length of the range that got replaced. NOTE: seems redundant, see: https://github.com/Microsoft/language-server-protocol/issues/9

text: String

The new text of the document.

Trait Implementations

impl Clone for TextDocumentContentChangeEvent[src]

impl Debug for TextDocumentContentChangeEvent[src]

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

impl Eq for TextDocumentContentChangeEvent[src]

impl PartialEq<TextDocumentContentChangeEvent> for TextDocumentContentChangeEvent[src]

impl Serialize for TextDocumentContentChangeEvent[src]

impl StructuralEq for TextDocumentContentChangeEvent[src]

impl StructuralPartialEq for TextDocumentContentChangeEvent[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.