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 TextEdit
s 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.
Methods
impl TextEdit
[src]
Trait Implementations
impl Debug for TextEdit
[src]
impl PartialEq for TextEdit
[src]
fn eq(&self, __arg_0: &TextEdit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextEdit) -> bool
This method tests for !=
.
impl Clone for TextEdit
[src]
fn clone(&self) -> TextEdit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more