[][src]Struct tamasfe_lsp_types::TextEdit

pub struct TextEdit {
    pub range: Range,
    pub new_text: String,
}

A textual edit applicable to a text document.

If n TextEdits are applied to a text document all text edits describe changes to the initial document version. Execution wise text edits should applied from the bottom to the top of the text document. Overlapping text edits are not supported.

Fields

range: Range

The range of the text document to be manipulated. To insert text into a document create a range where start === end.

new_text: String

The string to be inserted. For delete operations use an empty string.

Implementations

impl TextEdit[src]

pub fn new(range: Range, new_text: String) -> TextEdit[src]

Trait Implementations

impl Clone for TextEdit[src]

impl Debug for TextEdit[src]

impl Default for TextEdit[src]

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

impl Eq for TextEdit[src]

impl From<TextEdit> for CompletionTextEdit[src]

impl PartialEq<TextEdit> for TextEdit[src]

impl Serialize for TextEdit[src]

impl StructuralEq for TextEdit[src]

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