Struct lsp_types::InsertReplaceEdit
source · pub struct InsertReplaceEdit {
pub new_text: String,
pub insert: Range,
pub replace: Range,
}
Expand description
A special text edit to provide an insert and a replace operation.
@since 3.16.0
Fields§
§new_text: String
The string to be inserted.
insert: Range
The range if the insert is requested
replace: Range
The range if the replace is requested.
Trait Implementations§
source§impl Clone for InsertReplaceEdit
impl Clone for InsertReplaceEdit
source§fn clone(&self) -> InsertReplaceEdit
fn clone(&self) -> InsertReplaceEdit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InsertReplaceEdit
impl Debug for InsertReplaceEdit
source§impl Default for InsertReplaceEdit
impl Default for InsertReplaceEdit
source§fn default() -> InsertReplaceEdit
fn default() -> InsertReplaceEdit
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InsertReplaceEdit
impl<'de> Deserialize<'de> for InsertReplaceEdit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InsertReplaceEdit> for CompletionTextEdit
impl From<InsertReplaceEdit> for CompletionTextEdit
source§fn from(edit: InsertReplaceEdit) -> Self
fn from(edit: InsertReplaceEdit) -> Self
Converts to this type from the input type.
source§impl PartialEq for InsertReplaceEdit
impl PartialEq for InsertReplaceEdit
source§fn eq(&self, other: &InsertReplaceEdit) -> bool
fn eq(&self, other: &InsertReplaceEdit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InsertReplaceEdit
impl Serialize for InsertReplaceEdit
impl Eq for InsertReplaceEdit
impl StructuralPartialEq for InsertReplaceEdit
Auto Trait Implementations§
impl Freeze for InsertReplaceEdit
impl RefUnwindSafe for InsertReplaceEdit
impl Send for InsertReplaceEdit
impl Sync for InsertReplaceEdit
impl Unpin for InsertReplaceEdit
impl UnwindSafe for InsertReplaceEdit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more