Struct lsp2::InsertReplaceEdit
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§
§impl Clone for InsertReplaceEdit
impl Clone for InsertReplaceEdit
§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 more§impl Debug for InsertReplaceEdit
impl Debug for InsertReplaceEdit
§impl Default for InsertReplaceEdit
impl Default for InsertReplaceEdit
§fn default() -> InsertReplaceEdit
fn default() -> InsertReplaceEdit
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for InsertReplaceEdit
impl<'de> Deserialize<'de> for InsertReplaceEdit
§fn deserialize<__D>(
__deserializer: __D
) -> Result<InsertReplaceEdit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InsertReplaceEdit, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<InsertReplaceEdit> for CompletionTextEdit
impl From<InsertReplaceEdit> for CompletionTextEdit
§fn from(edit: InsertReplaceEdit) -> CompletionTextEdit
fn from(edit: InsertReplaceEdit) -> CompletionTextEdit
Converts to this type from the input type.
§impl PartialEq<InsertReplaceEdit> for InsertReplaceEdit
impl PartialEq<InsertReplaceEdit> for InsertReplaceEdit
§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 ==
.§impl Serialize for InsertReplaceEdit
impl Serialize for InsertReplaceEdit
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for InsertReplaceEdit
impl StructuralEq for InsertReplaceEdit
impl StructuralPartialEq for InsertReplaceEdit
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.