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§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.