Struct languageserver_types::TextEdit [−][src]
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.
Methods
impl TextEdit[src]
impl TextEditTrait Implementations
impl Debug for TextEdit[src]
impl Debug for TextEditfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for TextEdit[src]
impl Eq for TextEditimpl PartialEq for TextEdit[src]
impl PartialEq for TextEditfn eq(&self, other: &TextEdit) -> bool[src]
fn eq(&self, other: &TextEdit) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TextEdit) -> bool[src]
fn ne(&self, other: &TextEdit) -> boolThis method tests for !=.
impl Clone for TextEdit[src]
impl Clone for TextEditfn clone(&self) -> TextEdit[src]
fn clone(&self) -> TextEditReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for TextEdit[src]
impl Default for TextEdit