[][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 Eq for TextDocumentContentChangeEvent
[src]

impl PartialEq<TextDocumentContentChangeEvent> for TextDocumentContentChangeEvent
[src]

impl Debug for TextDocumentContentChangeEvent
[src]

impl Serialize for TextDocumentContentChangeEvent
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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