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 moresourceimpl 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
Converts to this type from the input type.
sourceimpl PartialEq<InsertReplaceEdit> for InsertReplaceEdit
impl PartialEq<InsertReplaceEdit> for InsertReplaceEdit
sourcefn eq(&self, other: &InsertReplaceEdit) -> bool
fn eq(&self, other: &InsertReplaceEdit) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more