Struct lsp_types::InsertReplaceEdit
source · [−]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
sourceimpl Clone for InsertReplaceEdit
impl Clone for InsertReplaceEdit
sourcefn clone(&self) -> InsertReplaceEdit
fn clone(&self) -> InsertReplaceEdit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InsertReplaceEdit
impl Debug for InsertReplaceEdit
sourceimpl Default for InsertReplaceEdit
impl Default for InsertReplaceEdit
sourcefn default() -> InsertReplaceEdit
fn default() -> InsertReplaceEdit
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InsertReplaceEdit
impl<'de> Deserialize<'de> for InsertReplaceEdit
sourcefn 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
sourceimpl From<InsertReplaceEdit> for CompletionTextEdit
impl From<InsertReplaceEdit> for CompletionTextEdit
sourcefn from(edit: InsertReplaceEdit) -> Self
fn from(edit: InsertReplaceEdit) -> Self
Performs the conversion.
sourceimpl PartialEq<InsertReplaceEdit> for InsertReplaceEdit
impl PartialEq<InsertReplaceEdit> for InsertReplaceEdit
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &InsertReplaceEdit) -> bool
fn ne(&self, other: &InsertReplaceEdit) -> bool
This method tests for !=
.
sourceimpl Serialize for InsertReplaceEdit
impl Serialize for InsertReplaceEdit
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more