Struct languageserver_types::TextEdit [] [src]

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

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

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

Methods

impl TextEdit
[src]

[src]

Trait Implementations

impl Debug for TextEdit
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for TextEdit
[src]

impl PartialEq for TextEdit
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for TextEdit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for TextEdit
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for TextEdit

impl Sync for TextEdit